Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A PHP library that utilizes both the Last.fm API and the Spotify Metadata API to fetch track data
PHP
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib fixed a major typo in setSpotify method
.gitignore code has been written
README code has been written
README.markdown updated example code in readme.markdown
cronjob.php
index.php

README.markdown

This library uses the Last.fm API to fetch various music data. In addition, it utilizes the Spotify Metadata API to add a spotify link to the songs.

Requirements:

  • PHP 5.2
  • A Last.fm API key
  • Cron jobs

Installation: Put your api key in cronjob.php Setup a cron job that will run cronjob.php every 5 minutes or so

Usage:

    userGetTracks('Hanse');
    
    foreach ($tracks as $track) {
        print_r($track);
    }
Something went wrong with that request. Please try again.