News

May 28, 2017

samdark

Programming With Yii: Generating Documentation

New article at tuts+ is about using apidoc to generate documentation from markdown and transforming it into PDFs.

May 15, 2017

samdark

Programming With Yii2: Building Community With Voting, Comments, and Sharing

Hacking together votes, comments and social sharing using Yii extensions.

May 12, 2017

samdark

Yii development notes 7

7th issue of Yii development notes by Alexander Makarov from core team is out.

May 8, 2017

samdark

Building Your Startup With PHP series continues

YiiFeed missed a few articles in "Building Your Startup With PHP" series at tuts+. The series continues. So far the following articles were published:

May 5, 2017

jamband

Yii and webpack in a real project

At plusarchive.com npm(Yarn) and webpack 2.x are used instead of composer-asset-plugin and yii\web\AssetManager. The project was recently opensourced and could serve as an example.

May 5, 2017

Saquib Rizwan

Create A Cross-Platform REST API In Yii2

When you are working on the cross-platform application, REST API’s become essential requirements of the process. This is why the Internet is full of third party API’s that provide a wide range of functionality and usability. Yii is a major PHP framework for rapid web development with a well-defined MVC architecture. In order to create a cross-platform Yii2 application, you need to create a REST API in Yii2.

In this article, I will develop a REST API in Yii 2 framework. The process covers:

Installation of Yii 2 framework on Cloudways Database and table(s) creation Database model using Gii Controller creation using Gii HTTP Calls (GET, PUT, POST, DELETE)

May 4, 2017

samdark

Queue for Yii 2

zhuravljov/yii2-queue extension for async queues version 1.0.0 was released.

First stable release is a result of 180 commits and a year of development. The development was supervised by core team suggesting improvements and ideas based on many iterations of yii2-queue. Thus, quality of the extension is high and in the future it may become official one for Yii.

May 2, 2017

samdark

SwiftMailer extension 2.0.7 released

Yii team released SwiftMailer extension version 2.0.7. Changes are the following:

  • Ability to setup several message headers in batch, including configuration at yii\swiftmailer\Mailer::$messageConfig.
  • Better logging support, by choosing logging level (info, trace, warning) according to swiftmailer log format.
  • Fixed bug: yii\swiftmailer\Message did not clone the underlying $swiftMessage instance during its own cloning.

Apr 27, 2017

insperedia

Yii2 PhpStorm plugin was updated

yii2support plugin got new release. This time we focused on working with database. Connection to database is required to get all the benefits such as autocompleting table and column names in the following cases:

  • ActiveQuery methods (ActiveRecord::find())
  • ActiveRecord methods with condition
  • Methods inside migration classes
  • Methods inside custom ActiveQuery
  • Within ActiveRecord::relations method

Besides the above, the plugin provides extra help for parametrized queries by generating parameters array and checking if it is consistent with condition.

Last but not least, the plugin checks if @property tags conform to database structure and completes tags in case some properties are missing.

Support for Url::to() and Model::rules() methods is in development and is scheduled for the next release.

Apr 25, 2017

samdark

Yii development notes 6

Another issue of development notes from Yii core team member @samdark, Alexander Makarov.