DreamFactory Yii Components Library v1.5.15
This library is a set of small set of components used by the DreamFactory Services Platform™ for use with the Yii Framework.
Installation
Add a line to your "require" section in your composer configuration:
"require": {
"dreamfactory/lib-php-common-yii": "~1.5.0"
}
Run a composer update:
$ composer update
Helpers
The library is full of mainly helper classes to make Yii less verbose and a little less greedy. Have a look at Utility\Pii.php and see how it may save you some time.
use DreamFactory\Yii\Utility\Pii;
if ( Pii::guest() ) {
$this->redirect( Pii::user()->loginUrl );
}