PHPackages                             itisbean/php-spotify-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. itisbean/php-spotify-api

ActiveLibrary[API Development](/categories/api)

itisbean/php-spotify-api
========================

spotify api for php

1.0.2(5y ago)117MITPHPPHP &gt;=5.6.0

Since Nov 21Pushed 5y ago1 watchersCompare

[ Source](https://github.com/itisbean/php-spotify-api)[ Packagist](https://packagist.org/packages/itisbean/php-spotify-api)[ RSS](/packages/itisbean-php-spotify-api/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

php-spotify-api
===============

[](#php-spotify-api)

spotify api for php

Composer Install
----------------

[](#composer-install)

```
composer require itisbean/php-spotify-api
```

Use
---

[](#use)

```
// 引入autoload.php（框架中使用不需要）
include_once __DIR__.'/../vendor/autoload.php';
// 实例化Api类
$api = new \spotifyMusic\Api();
// 调用
$ret = $api->getSingerInfo('2zzKlxMsKTPMsZacZCPRNA');
```

Function
--------

[](#function)

### Get singer information

[](#get-singer-information)

```
/**
 * 獲取歌手信息
 * @param string $singerId
 * @return array
 */
$api->getSingerInfo('2zzKlxMsKTPMsZacZCPRNA');
```

### Get all albums of the singer

[](#get-all-albums-of-the-singer)

```
/**
 * 獲取歌手全部專輯
 * @param string $singerId
 * @return array
 */
$api->getSingerAlbums('2zzKlxMsKTPMsZacZCPRNA');
```

### Get album information

[](#get-album-information)

```
/**
 * 獲取專輯信息
 * @param string $albumId
 * @return array
 */
$api->getAlbumInfo('0zPpdDiDX6JnGZRHXFYuZt');
```

### Get album songs

[](#get-album-songs)

```
/**
 * 獲取專輯歌曲
 * @param string $albumId
 * @return array
 */
$api->getAlbumSongs('0zPpdDiDX6JnGZRHXFYuZt');
```

### Get the playlist list

[](#get-the-playlist-list)

```
/**
 * 獲取歌單列表
 * @param string $playlistId
 * @return array
 */
$api->getPlaylist('37i9dQZEVXbLwpL8TjsxOG');
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

Total

3

Last Release

1946d ago

### Community

Maintainers

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

---

Top Contributors

[![itisbean](https://avatars.githubusercontent.com/u/32357214?v=4)](https://github.com/itisbean "itisbean (5 commits)")

---

Tags

spotifyspotify-apispotify music

### Embed Badge

![Health badge](/badges/itisbean-php-spotify-api/health.svg)

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

###  Alternatives

[aerni/laravel-spotify

A Laravel wrapper for the Spotify Web API

209145.6k](/packages/aerni-laravel-spotify)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[jwilsson/spotify-web-api-php

A PHP wrapper for Spotify's Web API.

8841.3M8](/packages/jwilsson-spotify-web-api-php)[mmoreram/spotify-api-bundle

Easy Spotify Api interface for Symfony2 projects

128.5k](/packages/mmoreram-spotify-api-bundle)

PHPackages © 2026

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