dreamfactory/lib-php-common-yii

DreamFactory Services Platform(tm) Yii Components Library


Keywords
sdk, yii, dsp
License
Apache-2.0

Documentation

DreamFactory Yii Components Library v1.5.15

Latest Stable Version Total Downloads Latest Unstable Version License

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 );
}