PHPackages                             wesolowski/spotify-api-connect - 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. wesolowski/spotify-api-connect

AbandonedArchivedLibrary

wesolowski/spotify-api-connect
==============================

1.1.1(6y ago)3134[2 PRs](https://github.com/wesolowski/spotify-api-connect/pulls)MITPHPPHP &gt;=7.2.0

Since Jun 5Pushed 3y ago1 watchersCompare

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

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

Spotify API Connect for PHP
===========================

[](#spotify-api-connect-for-php)

[![Build Status](https://camo.githubusercontent.com/f3f18ced6117ef3d13ac59dc5854cb3e9999549a61c184bcb0fa515f79aea0db/68747470733a2f2f7472617669732d63692e636f6d2f7765736f6c6f77736b692f73706f746966792d6170692d636f6e6e6563742e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/wesolowski/spotify-api-connect)[![codecov](https://camo.githubusercontent.com/9e9f40704fa05d8dbd9b91c127d9b0401c8c669451652ee80b2a197239a524a6/68747470733a2f2f636f6465636f762e696f2f67682f7765736f6c6f77736b692f73706f746966792d6170692d636f6e6e6563742f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/wesolowski/spotify-api-connect)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/b4a1ac421ae756b488b8fdd0b49f4104acedab6702b02ca5c79bbb36bc58c4fe/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7765736f6c6f77736b692f73706f746966792d6170692d636f6e6e6563742f6261646765732f7175616c6974792d73636f72652e706e67)](https://scrutinizer-ci.com/g/wesolowski/spotify-api-connect)

This is a Wrapper for [Spotify Web API PHP](https://github.com/jwilsson/spotify-web-api-php)

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

[](#requirements)

- PHP 7.2 or later.
- PHP [cURL extension](http://php.net/manual/en/book.curl.php) (Usually included with PHP).

Start
-----

[](#start)

Add ENV-Variable:

CLIENT\_ID = ###my\_client\_id###
CLIENT\_SECRET = ###my\_client\_secret###
REDIRECT\_URI = ###my\_redirect\_uri###
REFRESH\_TOKEN = ###my\_refresh\_token###

You can set the Env-Variable with this packages: [PHP dotenv](https://github.com/vlucas/phpdotenv) or [Symfony DotEnv](https://github.com/symfony/dotenv)or manual in your application `$_ENV['CLIENT_ID']=CLIENT_ID`

#### Factory

[](#factory)

Factory-Class `SpotifyApiConnectFactory` give you access to main function

First you should set `CLIENT_ID`, `CLIENT_SECRET`, `REDIRECT_URI` ENV-Variable.
REDIRECT\_URI is you application URL

For Redirect-Url pleas use this class: `SpotifyApiConnect\Application\SpotifyWebApiPhp\Session`
-&gt; Factory: `(new SpotifyApiConnectFactory)->createSpotifyApiAuth()`

Here is a Symfony example:

When you get a Refresh Token pleas save this in `$_ENV['REFRESH_TOKEN']`

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Total

5

Last Release

2424d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a0c7fd22b91b022d1052999c8838762fb17f410afc935499e0dd8e520b689c78?d=identicon)[wesolowski](/maintainers/wesolowski)

---

Top Contributors

[![wesolowski](https://avatars.githubusercontent.com/u/1388643?v=4)](https://github.com/wesolowski "wesolowski (86 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/wesolowski-spotify-api-connect/health.svg)

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

###  Alternatives

[calliostro/spotify-web-api-bundle

Symfony bundle for the Spotify Web API — streaming, music data &amp; integration made easy

121.9k](/packages/calliostro-spotify-web-api-bundle)

PHPackages © 2026

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