May 1, 2018


Yii development notes #22

Another issue of Yii development notes was posted giving overview of what happened last months.

Apr 24, 2018


Smarty and Swiftmailer official extensions released

Yii team tagged two releases:

Both are fixing bugs. Smarty has an enhancement on board as well. Both are safe to upgrade via Composer.

Apr 24, 2018


Email templates module 4.0.0 released

The extension is for creating email templates and managing them in a website dashboard. You can create email templates with CRUD module in your backend or Gii generator. Version 4.0.0 chages are:

  • Improved extension architecture
  • Changed minimum Yii version from ^2.0.0 to ^2.0.13
  • Fixed a bug with yii\base\Object on PHP 7.2
  • Removed unused composer packages from dependencies
  • Other minor improvements and fixes

All changes are avaliable in changelog file.

Apr 16, 2018


yii2tech got new extension releases

Paul Klimov from Yii team released new versions for extensions he maintains:

  • Admin 1.1.0 - provides controllers, actions, widgets and other tools for administration panel creation in Yii2 project.
  • Config 1.0.6 - provides support for application runtime configuration, loading config from database.
  • AR search 1.0.0 - provides unified search model for Yii ActiveRecord.
  • AR role 1.0.3 - provides support for ActiveRecord relation role (table inheritance) composition.
  • AR variation 1.0.4 - provides support for ActiveRecord variation via related models. In particular it allows implementing i18n feature for ActiveRecord.
  • HTML2PDF 1.0.3 - provides basic support for HTML to PDF and PHP to PDF conversion.
  • Spreadsheet 1.0.1 - provides ability to export data to spreadsheet, e.g. Excel, LibreOffice etc.
  • FileDB 1.0.6 - provides ActiveRecord interface for the data declared in static files. Such solution allows declaration of static entities like groups, statuses and so on via files, which are stored under version control instead of database.

Apr 1, 2018


Yii2 Inspections 1.0.3 is out

Yii2 Inspections plugin for PhpStorm, adding many useful features, was updated to version 1.0.3. In this version some false positives in inspections were fixed along with fixing unexpected autocomplete being triggered.

Mar 29, 2018


LUYA Q1 2018 summary

LUYA Q1 2018

3 months ago we released LUYA version 1.0. Since then we have received a lot of positive feedback from developers around the world as well as requests for additions, improvements and bug fixes. Packagist notes more than 113'000 downloads and installs, including LUYA modules and extensions, and the project has received almost 500 stars on GitHub.

The LUYA future is headless

With the continuing development, we started to take LUYA into the direction of a headless system, which makes it rather unique among its kind. Headless systems will become more and more popular as they allow for lean, flexible and scalable applications that combine multiple specialized systems through their APIs.

The client library still need a lot of work, but they will get to the point where you can make a website without installing any dependencies by connecting to LUYA's headless client to retrieve menus, contents, properties or layouts. PSR6 compatible Caching will make the output blazingly fast! You won't have to deal with the application or the environment (e.g. get cms content and menu within your symfony application). Of course, collecting data from the built in or your own admin APIs is possible too.

We created a new API users endpoint which provides information about API access. You can test your endpoints and see what permissions are available:

API user overview

In order to see what the API users (or any other admin users) have done, we have also built a more detailed user activity summary:

User summary

All these changes are available now in luya admin module in version 1.1.0. A new guide section about the headless features is under development:

Dockerized LUYA kickstarter

We also have released the luya kickstarter in version 1.0.1 with a dockerized development environment, which is now an integral part of the kickstarter. Thanks to contributor rainerCH who did a fantastic job in bringing all these LUYA specific requests into one place. We will evolve the Docker environment and provide a single image on dockerhub in the future.

Development environments for extension and module developers

LUYA env dev repo for extension and module developers is finished. The main purpose for this repo is an easy way for developers to create and maintain their own modules and extensions. It is also a good way for contributors who would like to help improve luya core modules as it will auto clone all core modules and update these with a single command ./vendor/bin/luyadev repo/update.

As the repos are bound into the env dev application with PSR4, we have written a library which auto updates your composer.json so you can easily clone your own repos into the env dev like ./vendor/bin/luyadev repo/clone USERNAME/LUYA_MODULE_REPO_NAME which will then update your composer.json and run composer dump-autoload. Don't miss to take a look at this shiny and new dev env. if you are interested in the development of modules, extensions or contributions.

Overview of enhancements and new features

  • A new user summary active window in the admin provides diff for changes inside ngrest tables.
  • The configuration now includes security options like luya\web\Application::$ensureSecureConnection or luya\web\Composition::$allowedHosts. See the new guide about security in LUYA:
  • The admin security has been improved with permissions.
  • Admin and cms now have Chinese language support.
  • The testsuite includes new test cases and helper methods.
  • The error API was updated to provide a more detailed summary mail with application trace.
  • The JSON-LD output was improved for SEO purposes
  • Various fixes for PHP 7.2 compatibility

The remote admin provides an option to display the installed LUYA modules/extensions with their version numbers and info about whether they are current or outdated: Packages

We added a Matomo Module (former Piwik) dashboard object to provide information about visits via API: Matomo

The LUYA composer plugin now provides a plugin list in the admin UI: Debug Toolbar

New LUYA based open source project

A new open source project is almost ready: a time tracking tool based on LUYA, Angular and Bootstrap 4. Dtimer

We want you!

We are looking for people who help us with

  • Translations
  • Documentation (guide and phpdoc)
  • Module/extension development

If you are interested, please get into contact.

29 March 2018 LUYA developer team

Mar 23, 2018


Yii development notes #21

New issue of Yii development notes: 2.0 releases, 2.1 post by Paul, https for Yii-realted websites and, finally, official site launch.

Mar 22, 2018


Finally releasing the new website

Yii team is ready to release new website. The announcement itself is interesting but since it may not be available for some time, here's most important part:

We are going to switch to the new website on March 23, 2018 in the time frame 8:00 to 12:00 UTC. During the switch, you will not be able to write comments, wikis, forum entries etc. Also the documentation may not be available. You can use to view the documentation.

We will be avilable in the Slack chat and on IRC #yii on freenode, so if you need help, get there.

Mar 20, 2018


Releasing Yii 2.0.15 and database extensions with security fixes

Yii team released security fixes for framework and extensions. Details are in the announcements. Please update.

Mar 14, 2018


cebe/markdown 1.2.0 released

Carsten Brandt (@cebe) released new version of his markdown library that is used to render markdown in Yii including definitive guide and API docs.