
metatune
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 ```
// First we take a search $trackResults = $spotify->searchTrack ("Superfamily");
if(count($trackResults) > 0) { $out = count($trackResults) . " results \n
- ";
foreach($trackResults as $track) {
// $track is now an object of the class Track.
$out . "\t
- {$track} \n"; } echo $out . "
Newest changes
06.11.2011: Migrated from SVN to Git repo.
- Did this to be able to have save repo for Github and Google Code
28.01.2010: Version: 1.0.1 (released in downloads)
- 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. 1. Edited translateString() to support all of the queries of Spotify's advanced search syntax. 1. Other minor changes. 1. 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 1. Now uses Exceptions for error handling. New class: MetaTuneException 1. 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. 1. Added a test-file for XML importing/exporting. 1. 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".
Project Information
- License: GNU GPL v3
- 22 stars
- git-based source control
Labels:
spotify
metadata-api
php
php5
oop
spotify-metadata
spotify-api
api-wrapper
api
xml