PHPackages                             pkboom/spotify-apis - 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. pkboom/spotify-apis

ActiveLibrary[API Development](/categories/api)

pkboom/spotify-apis
===================

01PHP

Since Mar 11Pushed 7y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Spotify API
===========

[](#spotify-api)

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

[](#installation)

```
composer require pkboom/spotify-apis
```

Create shopify [client id](https://developer.spotify.com/dashboard/)

Go to 'EDIT SETTING' -&gt; Register Redirect a URI

Publish config-file and set it up

```
php artisan vendor:publish --provider="Pkboom\SpotifyApis\SpotifyApisServiceProvider"
```

Create a callback route

```
// Example
Route::get('callback', function() {
    SpotifyApis::callback();
});
```

Usage
-----

[](#usage)

```
// Controller
use Pkboom\SpotifyApis;

class SpotifyApisController extends Controller
{
    public function login()
    {
        SpotifyApis::login();
    }

    public function callback()
    {
        SpotifyApis::callback();
    }

    public function refreshToken()
    {
        SpotifyApis::refreshToken();
    }

    public function getArtist($artist)
    {
        return SpotifyApis::getArtist($artist);
    }

    public function getMe()
    {
        return SpotifyApis::getMe();
    }

    public function search()
    {
        return SpotifyApis::search('bts', 'artist');
    }

// Route
Route::get('spotify/login', 'SpotifyApisController@login');
Route::get('spotify/callback', 'SpotifyApisController@callback');
Route::get('spotify/refresh_token', 'SpotifyApisController@refreshToken');

Route::get('spotify/artists/{artist}', 'SpotifyApisController@getArtist');
Route::get('spotify/me', 'SpotifyApisController@getMe');
Route::get('spotify/search', 'SpotifyApisController@search');
```

You could easily extend the class to create new methods

```
use Pkboom\SpotifyApis as Spotify;

class SpotifyApis extends Spotify
{
    public function getAlbum($album)
    {
        $params = [ 'ids' => $album ];

        return static::getInfo('albums', $params);
    }
}
```

[Spotify Web API](https://developer.spotify.com/documentation/web-api/)

License
-------

[](#license)

The MIT License (MIT). Please see [MIT license](http://opensource.org/licenses/MIT) for more information.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![pkboom](https://avatars.githubusercontent.com/u/13960169?v=4)](https://github.com/pkboom "pkboom (3 commits)")

### Embed Badge

![Health badge](/badges/pkboom-spotify-apis/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M475](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M270](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M452](/packages/google-gax)

PHPackages © 2026

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