yiiauth / spotify
Spotify OAuth2 for yii2-authclient
dev-master
2018-05-11 14:50 UTC
Requires
- php: ^7.0
- yiisoft/yii2-authclient: ~2.1
This package is auto-updated.
Last update: 2024-09-26 04:58:42 UTC
README
此扩展为 yii2-authclient 添加了 GitLab OAuth2 支持。
安装
安装此扩展的最佳方式是通过 composer。
运行以下命令之一:
php composer.phar require yiiauth/spotify
或者
"yiiauth/spotify": "~0.1"
将以下内容添加到您的 composer.json 文件的 require
部分。
用法
您必须阅读 yii2-authclient 的 文档
在 Spotify 中注册您的应用程序 (Spotify)
并将 Spotify 客户端添加到您的认证客户端中。
'components' => [ 'authClientCollection' => [ 'class' => \yii\authclient\Collection::class, 'clients' => [ 'spotify' => [ 'class' => \yiiauth\spotify\SpotifyClient:class, 'clientId' => 'client_id', 'clientSecret' => 'client_secret', ], // other clients ], ], // ... ]