PHPackages                             samdjstevens/oauth2-spotify - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. samdjstevens/oauth2-spotify

ActiveLibrary

samdjstevens/oauth2-spotify
===========================

0.1.2(7y ago)039MITPHPPHP &gt;=5.6.0

Since Aug 30Pushed 7y ago1 watchersCompare

[ Source](https://github.com/samdjstevens/oauth2-spotify)[ Packagist](https://packagist.org/packages/samdjstevens/oauth2-spotify)[ RSS](/packages/samdjstevens-oauth2-spotify/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Spotify Provider for league/oauth2-client
=========================================

[](#spotify-provider-for-leagueoauth2-client)

This package implements a Spotify OAuth 2.0 provider for the [league/oauth2-client](https://github.com/thephpleague/oauth2-client) library.

Requirements
------------

[](#requirements)

PHP 5.6 or higher is required.

Installation
------------

[](#installation)

Install with [Composer](https://getcomposer.org/) by running:

```
composer require samdjstevens/oauth2-spotify

```

Usage
-----

[](#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](http://oauth2-client.thephpleague.com/usage/).

License
-------

[](#license)

[MIT](https://github.com/samdjstevens/oauth2-spotify/blob/master/LICENSE)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

2808d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5695604?v=4)[Sam Stevens](/maintainers/samdjstevens)[@samdjstevens](https://github.com/samdjstevens)

### Embed Badge

![Health badge](/badges/samdjstevens-oauth2-spotify/health.svg)

```
[![Health](https://phpackages.com/badges/samdjstevens-oauth2-spotify/health.svg)](https://phpackages.com/packages/samdjstevens-oauth2-spotify)
```

###  Alternatives

[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[thenetworg/oauth2-azure

Azure Active Directory OAuth 2.0 Client Provider for The PHP League OAuth2-Client

2509.6M48](/packages/thenetworg-oauth2-azure)[stevenmaguire/oauth2-keycloak

Keycloak OAuth 2.0 Client Provider for The PHP League OAuth2-Client

2275.9M27](/packages/stevenmaguire-oauth2-keycloak)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

728272.9k17](/packages/civicrm-civicrm-core)[tempest/framework

The PHP framework that gets out of your way.

2.1k23.1k9](/packages/tempest-framework)[xeroapi/xero-php-oauth2

Xero official PHP SDK for oAuth2 generated with OpenAPI spec 3

1054.3M14](/packages/xeroapi-xero-php-oauth2)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
