Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yiiauth/spotify
Spotify OAuth2 for yii2-authclient
https://github.com/yiiauth/spotify
oauth2-client spotify spotify-oauth2 yii2-authclient yii2-extension
Last synced: 18 days ago
JSON representation
Spotify OAuth2 for yii2-authclient
- Host: GitHub
- URL: https://github.com/yiiauth/spotify
- Owner: yiiauth
- License: other
- Created: 2018-05-11T14:50:33.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-05-11T14:50:51.000Z (over 6 years ago)
- Last Synced: 2024-11-13T11:55:00.719Z (about 2 months ago)
- Topics: oauth2-client, spotify, spotify-oauth2, yii2-authclient, yii2-extension
- Language: PHP
- Homepage:
- Size: 2.93 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# yiiauth/spotify
This extension adds GitLab OAuth2 supporting for [yii2-authclient](https://github.com/yiisoft/yii2-authclient).
[![Latest Stable Version](https://poser.pugx.org/yiiauth/spotify/v/stable)](https://packagist.org/packages/yiiauth/spotify)
[![Total Downloads](https://poser.pugx.org/yiiauth/spotify/downloads)](https://packagist.org/packages/yiiauth/spotify)
[![Monthly Downloads](https://poser.pugx.org/yiiauth/spotify/d/monthly)](https://packagist.org/packages/yiiauth/spotify)
[![License](https://poser.pugx.org/yiiauth/spotify/license)](https://packagist.org/packages/yiiauth/spotify)## Installation
The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
Either run
```
php composer.phar require yiiauth/spotify
```or add
```json
"yiiauth/spotify": "~0.1"
```to the `require` section of your composer.json.
## Usage
You must read the yii2-authclient [docs](https://github.com/yiisoft/yii2/blob/master/docs/guide/security-auth-clients.md)
Register your application [in Spotify](https://beta.developer.spotify.com/dashboard)
and add the Spotify client to your auth clients.
```php
'components' => [
'authClientCollection' => [
'class' => \yii\authclient\Collection::class,
'clients' => [
'spotify' => [
'class' => \yiiauth\spotify\SpotifyClient:class,
'clientId' => 'client_id',
'clientSecret' => 'client_secret',
],
// other clients
],
],
// ...
]
```