|
Project Information
Featured
Downloads
Links
|
Moved to GithubThis project has moved to Github for both issue tracking and updates. Source: https://github.com/mikaelbr/metatune Documentation: http://mikaelbr.github.com/metatune/ Project InformationMetaTune 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 FeaturesTo 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 changes06.11.2011: Migrated from SVN to Git repo.
28.01.2010: Version: 1.0.1 (released in downloads)
25.01.2010: Version: 1.0 (released in downloads)
30.05.2010: Version: 0.2 (released in downloads)
License notice from SpotifyThis 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". |