RESTful Token for Yii 2

RESTful Token for Yii 2

Latest Stable Version Total Downloads Latest Unstable Version License

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist yiier/yii2-token "*"

or add

"yiier/yii2-token": "*"

to the require section of your composer.json file.

Migrations

Run the following command

php yii migrate --migrationPath=@yiier/token/migrations/

Usage

Once the extension is installed, simply modify your application configuration as follows:

return [
    'modules' => [
        'token' => [
            'class' => 'yiier\token\Module',
        ],
    ],
];

More detail