PHPackages                             gracenote/gracenote - 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. gracenote/gracenote

ActiveLibrary[API Development](/categories/api)

gracenote/gracenote
===================

A PHP library for abstracting the Gracenote API

21293PHP

Since May 28Pushed 10y ago1 watchersCompare

[ Source](https://github.com/StukiOrg/GracenoteClient-PHP)[ Packagist](https://packagist.org/packages/gracenote/gracenote)[ RSS](/packages/gracenote-gracenote/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Gracenote API PHP Library
=========================

[](#gracenote-api-php-library)

This is a library to abstract the Gracenote API

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

[](#installation)

1. edit `composer.json` file with following contents:

    ```
    "require": {
       "gracenote/gracenote": "dev-master"
    }
    ```
2. install composer via `curl -s http://getcomposer.org/installer | php` (on windows, download  and execute it with PHP)
3. run `php composer.phar install`

Use
---

[](#use)

Configure the service

```
use Gracenote\Service\Gracenote;

Gracenote::configure($clientId, $userId);
```

If you do not have a userId you may fetch one by setting your clientId and running

```
Gracenote::register();
```

Run a query

```
$simpleXmlResult = Gracenote::query('ALBUM_SEARCH', array(
    'mode' => 'SINGLE_BEST_COVER',
    'parameters' => array(
        'ARTIST' => 'the bengals',
        'ALBUM_TITLE' => 'different light',
        'TRACK_TITLE' => 'walk like an egyptian'
    ),
    'options' => array(
        'SELECT_EXTENDED' => 'COVER,REVIEW,ARTIST_BIOGRAPHY,ARTIST_IMAGE,ARTIST_OET,MOOD,TEMPO',
        'SELECT_DETAIL' => 'GENRE:3LEVEL,MOOD:2LEVEL,TEMPO:3LEVEL,ARTIST_ORIGIN:4LEVEL,ARTIST_ERA:2LEVEL,ARTIST_TYPE:2LEVEL',
    ),
));
```

The Gracenote API will return a SimpleXmlElement of the results

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 70.6% 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/49dd7d9dba889ac674b0da447d9c1e69d1128dc3ccbaef98ba83d6ee519fc2d6?d=identicon)[tom\_anderson](/maintainers/tom_anderson)

---

Top Contributors

[![TomHAnderson](https://avatars.githubusercontent.com/u/493920?v=4)](https://github.com/TomHAnderson "TomHAnderson (12 commits)")[![richadams](https://avatars.githubusercontent.com/u/439789?v=4)](https://github.com/richadams "richadams (5 commits)")

### Embed Badge

![Health badge](/badges/gracenote-gracenote/health.svg)

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

###  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.8M186](/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)
