PHPackages                             audeio/spotify-web-api - 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. [API Development](/categories/api)
4. /
5. audeio/spotify-web-api

ActiveLibrary[API Development](/categories/api)

audeio/spotify-web-api
======================

PHP library for the Spotify Web API

v0.9.2(11y ago)671.1k16[1 PRs](https://github.com/jonjomckay/spotify-web-api/pulls)MITPHPPHP &gt;=5.4

Since Aug 17Pushed 8y ago6 watchersCompare

[ Source](https://github.com/jonjomckay/spotify-web-api)[ Packagist](https://packagist.org/packages/audeio/spotify-web-api)[ Docs](https://github.com/jonjomckay/spotify-web-api)[ RSS](/packages/audeio-spotify-web-api/feed)WikiDiscussions develop Synced 1w ago

READMEChangelog (3)Dependencies (9)Versions (5)Used By (0)

Spotify Web API
===============

[](#spotify-web-api)

[![Build Status](https://camo.githubusercontent.com/d30e931e0246e0e09798b5e081cb9ddcca95fea8b3df1db371468ab9250f218b/68747470733a2f2f7472617669732d63692e6f72672f6a6f6e6a6f6d636b61792f73706f746966792d7765622d6170692e706e673f6272616e63683d646576656c6f70)](https://travis-ci.org/jonjomckay/spotify-web-api)

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

[](#requirements)

- PHP 5.4+
- An OAuth 2 client ([league/oauth2-client](https://github.com/thephpleague/oauth2-client) works well)

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

[](#installation)

1. Add `"audeio/spotify-web-api": "0.*"` to your `composer.json`
2. Run `composer update` to update your application with the new dependency
3. That's all!

### Usage

[](#usage)

1. Instantiate a new instance of `Audeio\Spotify\API` and set the access token retrieved by your OAuth 2 client (a provider for `league/oauth2-client` is included under `Audeio\Spotify\ Oauth2\Client\Provider\Spotify`):

    ```
    $api = new \Audeio\Spotify\API();
    $api->setAccessToken('BAWSDOJWEO984yt34y35YgdsnhlreGERH56u45htrH54y');
    ```
2. Call all the methods you need!

    ```
    $api->getAlbum('id');
    $api->getAlbums(array('id-1', 'id-2', 'id-3'));
    $api->getAlbumTracks('id');
    $api->getArtist('id');
    $api->getArtists(array('id-1', 'id-2', 'id-3'));
    $api->getArtistAlbums('id', 'country');
    $api->getArtistRelatedArtists('id');
    $api->getTrack('id');
    $api->getTracks(array('id-1', 'id-2', 'id-3'));
    $api->getUserProfile('id');
    $api->getCurrentUser();
    $api->getUserPlaylist('userId', 'id');
    $api->getUserPlaylistTracks('userId', 'id');
    $api->getUserPlaylists('id');
    ```

License
-------

[](#license)

The MIT License; please see [LICENSE](LICENSE) for more information.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 96.1% of commits — single point of failure

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 ~67 days

Total

3

Last Release

4159d ago

PHP version history (2 changes)v0.9PHP &gt;=5.3

v0.9.2PHP &gt;=5.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/456645?v=4)[Jonjo McKay](/maintainers/jonjomckay)[@jonjomckay](https://github.com/jonjomckay)

---

Top Contributors

[![jonjomckay](https://avatars.githubusercontent.com/u/456645?v=4)](https://github.com/jonjomckay "jonjomckay (49 commits)")[![imaimai86](https://avatars.githubusercontent.com/u/1019258?v=4)](https://github.com/imaimai86 "imaimai86 (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/audeio-spotify-web-api/health.svg)

```
[![Health](https://phpackages.com/badges/audeio-spotify-web-api/health.svg)](https://phpackages.com/packages/audeio-spotify-web-api)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[dcblogdev/laravel-microsoft-graph

A Laravel Microsoft Graph API (Office365) package

168285.5k1](/packages/dcblogdev-laravel-microsoft-graph)[chartmogul/chartmogul-php

ChartMogul API PHP Client

181.4M](/packages/chartmogul-chartmogul-php)[dcblogdev/laravel-xero

A Laravel Xero package

53129.1k1](/packages/dcblogdev-laravel-xero)[evandotpro/edp-github

Github API integration module for Zend Framework 2

241.6k](/packages/evandotpro-edp-github)

PHPackages © 2026

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