My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members
Featured
Downloads
Wiki pages
Links

Moved to Github

This project has moved to Github for both issue tracking and updates.

Source: https://github.com/mikaelbr/metatune

Documentation: http://mikaelbr.github.com/metatune/

Project Information

MetaTune is an advanced PHP wrapper for the Spotify Metadata API. You can search on all tracks, artists and albums. With caching and built in XML exporting for quick storing.

Spotify is a superb application for listening to and sharing music, but I couldn't really find any good open PHP libraries for accessing the grand Spotify Metadata API.

So I created this. This PHP wrapper will make it easier to use the Metadata API and fetch information about tracks/artists/albums listed in the enormous database. All results will be cached locally on your server.

Current version is 1.0. After a long time of no issues being posted, I now set this library as v.1.0. But please do post issues or enhancements


Features

To get a quick overview of all the different features of MetaTune, have a look at FeatureList

Here's some sample code for searching for tracks from the artist Superfamily

<?php
// We have the MetaTune-object; $spotify

// First we take a search
$trackResults = $spotify->searchTrack ("Superfamily");

if(count($trackResults) > 0) {
    $out = count($trackResults) . " results \n<ul>";
    foreach($trackResults as $track) {
          // $track is now an object of the class Track. 
          $out . "\t<li>{$track}</li>\n";
    }
    echo $out . "</ul>";
} else {
    echo "No results";
}
?>

Newest changes

06.11.2011: Migrated from SVN to Git repo.

  1. Did this to be able to have save repo for Github and Google Code

28.01.2010: Version: 1.0.1 (released in downloads)

  1. Minor bug fixes.

25.01.2010: Version: 1.0 (released in downloads)

Changes in revision r26, r27

  1. Removed ending php-tag on library files.
  2. Edited translateString() to support all of the queries of Spotify's advanced search syntax.
  3. Other minor changes.
  4. Relabeled as version 1.0

30.05.2010: Version: 0.2 (released in downloads)

Changes in revision r8, r7.

  1. Renaming of library. MBSpotifyLib -> MetaTune
  2. Now uses Exceptions for error handling. New class: MetaTuneException
  3. Added XML Import/Export. Added MBSimpleXMLElement as an extension of SimpleXMLElement to be able to add another XMLElement as child, and add CDATA as value in child.
  4. Added a test-file for XML importing/exporting.
  5. Fixed search query filtering to allow tag-searches.


License notice from Spotify

This product uses a SPOTIFY API but is not endorsed, certified or otherwise approved in any way by Spotify. Spotify is the registered trade mark of the Spotify Group.

Please remember to read Spotify "Terms of Use".

Powered by Google Project Hosting