PHPackages                             mmoreram/spotify-api-bundle - 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. mmoreram/spotify-api-bundle

ActiveSymfony-bundle[API Development](/categories/api)

mmoreram/spotify-api-bundle
===========================

Easy Spotify Api interface for Symfony2 projects

v1.1.0(12y ago)128.5k1[4 issues](https://github.com/mmoreram/SpotifyApiBundle/issues)[1 PRs](https://github.com/mmoreram/SpotifyApiBundle/pulls)MITPHPPHP &gt;=5.3.3

Since Nov 6Pushed 8y ago2 watchersCompare

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

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

SpotifyApiBundle for Symfony2
=============================

[](#spotifyapibundle-for-symfony2)

[![SensioLabsInsight](https://camo.githubusercontent.com/2e41bd39b69323875bb95504ea543717060547441b00df67743c3173920132f0/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f37393830633165352d623433302d343236342d386433302d6436653265663638643064382f6d696e692e706e67)](https://insight.sensiolabs.com/projects/7980c1e5-b430-4264-8d30-d6e2ef68d0d8)[![Scrutinizer Quality Score](https://camo.githubusercontent.com/107d0373dbcc0660297d3da8927c97e8f465a170968fa395cd7401f025f446c3/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d6d6f726572616d2f53706f7469667941706942756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f733d39363363396161323439353735313461333562343531643231356534623832333136663738396163)](https://scrutinizer-ci.com/g/mmoreram/SpotifyApiBundle/)[![Latest Stable Version](https://camo.githubusercontent.com/83026850a622a6868cd8895ec42966636bb584649cb0a39bf897419a0d35c365/68747470733a2f2f706f7365722e707567782e6f72672f6d6d6f726572616d2f73706f746966792d6170692d62756e646c652f762f737461626c652e706e67)](https://packagist.org/packages/mmoreram/spotify-api-bundle)[![Latest Unstable Version](https://camo.githubusercontent.com/db1987e8e226cd112cfbf516118f15f21bd87bc79555526ded2183906b5cad1f/68747470733a2f2f706f7365722e707567782e6f72672f6d6d6f726572616d2f73706f746966792d6170692d62756e646c652f762f756e737461626c652e706e67)](https://packagist.org/packages/mmoreram/spotify-api-bundle)[![Dependency Status](https://camo.githubusercontent.com/1a9d6bfe8ad22b3116eeedd10a8ccd338e233fbdb03caa3050e92e2e64d2d6bb/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3532616236643262363332626163353438303030303065332f62616467652e706e67)](https://www.versioneye.com/user/projects/52ab6d2b632bac54800000e3)[![Total Downloads](https://camo.githubusercontent.com/8bafaf4bba094aaee6316f60451bdd62be8fdf1d8975068a31c4cd2c74aa61a5/68747470733a2f2f706f7365722e707567782e6f72672f6d6d6f726572616d2f73706f746966792d6170692d62756e646c652f646f776e6c6f6164732e706e67)](https://packagist.org/packages/mmoreram/spotify-api-bundle)

> This bundle is only a wrapper of Spotify Api for all Symfony2 developers. You can find all API specification [here](https://developer.spotify.com/technologies/web-api/)

Table of contents
-----------------

[](#table-of-contents)

1. [Installing/Configuring](#installingconfiguring)
    - [Tags](#tags)
    - [Installing SpotifyApiBundle](#installing-spotifyapibundle)
2. [API Search](#api-search)
3. [API Lookup](#api-lookup)
4. [Contribute](#contribute)

Installing/Configuring
----------------------

[](#installingconfiguring)

Tags
----

[](#tags)

- Use version `1.0-dev` for last updated. Alias of `dev-master`.
- Use last stable version tag to stay in a stable release.

Installing [SpotifyApiBundle](https://github.com/mmoreram/SpotifyApiBundle)
---------------------------------------------------------------------------

[](#installing-spotifyapibundle)

You have to add require line into you composer.json file

```
"require": {
    "php": ">=5.3.3",
    "symfony/symfony": "2.3.*",

    "mmoreram/spotify-api-bundle": "dev-master"
}
```

Then you have to use composer to update your project dependencies

```
$ php composer.phar update
```

And register the bundle in your appkernel.php file

```
return array(
    // ...
    new Mmoreram\SpotifyApiBundle\SpotifyApiBundle(),
    // ...
);
```

API Search
----------

[](#api-search)

You can search a simple artist name, getting an array of Artists, with a maximum of 100 results

```
$page = 1;

$artists = $this
    ->container
    ->get('spotify.api.search')
    ->findArtist('Hans Zimmer', $page);
```

You can also search also a simple artist name, getting only first Artist

```
$artists = $this
    ->container
    ->get('spotify.api.search')
    ->findFirstArtist('Hans Zimmer');
```

You can search a simple Album name, getting an array of Albums, with a maximum of 100 results

```
$page = 1;

$albums = $this
    ->container
    ->get('spotify.api.search')
    ->findAlbums("Pirate of the Caribbean, at world's end", $page);
```

You can also search also a simple artist name, getting only first Artist

```
$albums = $this
    ->container
    ->get('spotify.api.search')
    ->findFirstAlbum("Pirate of the Caribbean, at world's end");
```

You can search a simple Track name, getting an array of Tracks, with a maximum of 100 results

```
$page = 1;

$tracks = $this
    ->container
    ->get('spotify.api.search')
    ->findTracks("I don't think now is the best time", $page);
```

You can also search also a simple artist name, getting only first Artist

```
$tracks = $this
    ->container
    ->get('spotify.api.search')
    ->findFirstTrack("I don't think now is the best time");
```

API Lookup
----------

[](#api-lookup)

Given an artist code, you can get all related information by using the Spitify Api Lookup service

```
$artist = $this
    ->container
    ->get('spotify.api.search')
    ->getArtist('spotify:artist:0YC192cP3KPCRWx8zr8MfZ');
```

Given an album code, you can also get all related information it

```
$album = $this
    ->container
    ->get('spotify.api.search')
    ->getAlbum('spotify:album:6JoI0NEAqeJ20X6lU3Drx0');
```

And given a track code, you can also get all related information about it

```
$track = $this
    ->container
    ->get('spotify.api.search')
    ->getTrack('spotify:track:5sbwYsgzeg7wsug1A1pTiO');
```

Contribute
----------

[](#contribute)

All code is Symfony2 Code formatted, so every pull request must validate phpcs standards. You should read [Symfony2 coding standards](http://symfony.com/doc/current/contributing/code/standards.html) and install [this](https://github.com/opensky/Symfony2-coding-standard) CodeSniffer to check all code is validated.

There is also a policy for contributing to this project. All pull request must be all explained step by step, to make us more understandable and easier to merge pull request. All new features must be tested with PHPUnit.

If you'd like to contribute, please read the [Contributing Code](http://symfony.com/doc/current/contributing/code/index.html) part of the documentation. If you're submitting a pull request, please follow the guidelines in the [Submitting a Patch](http://symfony.com/doc/current/contributing/code/patches.html#check-list) section and use the [Pull Request Template](http://symfony.com/doc/current/contributing/code/patches.html#make-a-pull-request).

[![Bitdeli Badge](https://camo.githubusercontent.com/720cd370d16e8415bcbc5e7f979863fd5cb71a916d790285ccccc63ea971ba99/68747470733a2f2f64327765637a68766c38323376302e636c6f756466726f6e742e6e65742f6d6d6f726572616d2f73706f7469667961706962756e646c652f7472656e642e706e67)](https://bitdeli.com/free "Bitdeli Badge")

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90.9% 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 ~103 days

Total

2

Last Release

4468d ago

### Community

Maintainers

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

---

Top Contributors

[![mmoreram](https://avatars.githubusercontent.com/u/521409?v=4)](https://github.com/mmoreram "mmoreram (20 commits)")[![bitdeli-chef](https://avatars.githubusercontent.com/u/3092978?v=4)](https://github.com/bitdeli-chef "bitdeli-chef (1 commits)")[![mhor](https://avatars.githubusercontent.com/u/4103719?v=4)](https://github.com/mhor "mhor (1 commits)")

---

Tags

spotify

### Embed Badge

![Health badge](/badges/mmoreram-spotify-api-bundle/health.svg)

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

###  Alternatives

[sylius/sylius

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

8.4k5.6M651](/packages/sylius-sylius)[sulu/headless-bundle

Bundle that provides controllers and services for using Sulu as headless content management system

55133.7k2](/packages/sulu-headless-bundle)

PHPackages © 2026

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