dreamfactory/lib-php-common-yii

This package is abandoned and no longer maintained. No replacement package was suggested.

DreamFactory Services Platform(tm) Yii Components Library

1.5.15 2015-02-27 17:48 UTC

README

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.

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