PHPackages                             mandisma/spotify-api-client - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. mandisma/spotify-api-client

ActiveLibrary[HTTP &amp; Networking](/categories/http)

mandisma/spotify-api-client
===========================

Http Client for the Spotify API.

0.2.1(4y ago)411MITPHPPHP ^7.3|^8.0

Since May 1Pushed 3y ago1 watchersCompare

[ Source](https://github.com/mandisma/spotify-api-client)[ Packagist](https://packagist.org/packages/mandisma/spotify-api-client)[ RSS](/packages/mandisma-spotify-api-client/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependencies (5)Versions (6)Used By (0)

SpotifyApiClient
================

[](#spotifyapiclient)

[![Latest Version on Packagist](https://camo.githubusercontent.com/c121f388235ec71c571b97fe8fb45492b8ae071d996ad6b786bad93093475b1c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d616e6469736d612f73706f746966792d6170692d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mandisma/spotify-api-client)[![GitHub Tests Action Status](https://camo.githubusercontent.com/27cc60c41693435bf9863bfe5be42a351a3769969a908b47819b182059cf64f9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6d616e6469736d612f73706f746966792d6170692d636c69656e742f504850253230436f6d706f7365723f6c6162656c3d7465737473)](https://github.com/mandisma/spotify-api-client/actions?query=workflow%3A%22PHP+Composer%22+branch%3Amaster)[![Total Downloads](https://camo.githubusercontent.com/ca80b0d9fdf9b466fd96cf696a38d10cf05608aee84281da146cbfdfbe5bff9e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d616e6469736d612f73706f746966792d6170692d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mandisma/spotify-api-client)

PHP Wrapper for the Spotify Api.

The library follow the structure from the Spotify Web Api Reference :

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

[](#installation)

You can install the package via composer:

```
composer require mandisma/spotify-api-client
```

Usage
-----

[](#usage)

The OAuth2 authentication is not provided by this library. You have to do it or your own or use an existing library.

Then you have to create a class which implements the `AuthorizationInterface` before you can start. This interface is needed to initialize the client.

**Initialize the client :**

```
$clientBuilder = new \Mandisma\SpotifyApiClient\ClientBuilder();

$client = $clientBuilder->build(/*AuthorizationInterface*/ $authorization);

$playedTracks = $client->playerApi->getRecentlyPlayedTracks();
```

Testing
-------

[](#testing)

```
composer test
```

Credits
-------

[](#credits)

- [mandisma](https://github.com/mandisma)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~112 days

Total

5

Last Release

1758d ago

PHP version history (2 changes)0.1.0PHP ^7.2

0.2.0PHP ^7.3|^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9897969?v=4)[Maël Mandis](/maintainers/mandisma)[@mandisma](https://github.com/mandisma)

---

Top Contributors

[![mandisma](https://avatars.githubusercontent.com/u/9897969?v=4)](https://github.com/mandisma "mandisma (38 commits)")

---

Tags

httpapiclientspotify

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/mandisma-spotify-api-client/health.svg)

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

###  Alternatives

[printu/labelary

PHP API for Labelary.com

34616.9k](/packages/printu-labelary)[printu/customerio

PHP API for Customer.io

241.1M2](/packages/printu-customerio)[e-moe/guzzle6-bundle

Integrates Guzzle 6 into your Symfony application

11259.2k](/packages/e-moe-guzzle6-bundle)[meteocontrol/vcom-api-client

HTTP Client for meteocontrol's VCOM API - The VCOM API enables you to directly access your data on the meteocontrol platform.

175.7k1](/packages/meteocontrol-vcom-api-client)[rap2hpoutre/jacky

Opinionated REST JSON HTTP API client for laravel

174.4k](/packages/rap2hpoutre-jacky)[laragear/api-manager

Manage multiple REST servers to make requests in few lines and fluently.

161.8k](/packages/laragear-api-manager)

PHPackages © 2026

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