jambtc / yii2-oauth-amazon
yii2 oauth Amazon Authorization Login
Package info
github.com/jambtc/yii2-oauth-amazon
Type:yii2-extension
pkg:composer/jambtc/yii2-oauth-amazon
v1.0
2021-10-20 11:37 UTC
Requires
- yiisoft/yii2: ~2.0.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
yii2 oauth Amazon Authorization Login
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist jambtc/yii2-oauth-amazon "*"
or add
"jambtc/yii2-oauth-amazon": "*"
to the require section of your composer.json file.
Usage
Once the extension is installed, simply use it in your code by :
use jambtc\oauthamazon\amazon; $checkAmazonUrl = Url::to(['amazon/check-authorization']); $clientId = Yii::$app->params['amazon.clientId']; $clientSecret = Yii::$app->params['amazon.clientSecret']; $lwa = new amazon($clientId, $clientSecret); echo $lwa->setAmazonScript(); echo $lwa->loginButton($checkAmazonUrl);