RESTful Token for Yii 2
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.
Run the following command
php yii migrate --migrationPath=@yiier/token/migrations/
Once the extension is installed, simply modify your application configuration as follows:
return [
'modules' => [
'token' => [
'class' => 'yiier\token\Module',
],
],
];