Skip to content

Display the artwork and track info for your current last.fm track

Notifications You must be signed in to change notification settings

jonashcroft/last-fm-now-playing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Display your current track on last.fm

This is a simple PHP function that will get your most recently played from Last FM and display:

  • Track Name
  • Artist Name
  • Album Artwork

This is a simple drop-in function which will retrieve track info from the recentracks endpoint. If you're currently playing a track, then this will reflect and change 'Last Played' to 'Currently Playing.

To use this, you'll need your last.fm username and API keys (which you can generate from here)

This function even supports fallback artwork - because I've found that some 'obscure' tracks don't have album artwork on last.fm.

I'm currently using this in the footer of my blog

About

Display the artwork and track info for your current last.fm track

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages