samdjstevens / oauth2-spotify
Installs: 39
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/samdjstevens/oauth2-spotify
Requires
- php: >=5.6.0
- league/oauth2-client: ^2.3
This package is not auto-updated.
Last update: 2025-10-26 11:23:45 UTC
README
This package implements a Spotify OAuth 2.0 provider for the league/oauth2-client library.
Requirements
PHP 5.6 or higher is required.
Installation
Install with Composer by running:
composer require samdjstevens/oauth2-spotify
Usage
Create a new instance of the provider with your app details like so:
$provider = new \Samdjstevens\OAuth2\Client\Provider\Spotify([ 'clientId' => 'YOUR_SPOTIFY_CLIENT_ID', 'clientSecret' => 'YOUR_SPOTIFY_CLIENT_SECRET', 'redirectUri' => 'https://example.com/callback-url', ]);
And then use with the league/oauth2-client library as outlined here.