An open API service indexing awesome lists of open source software.

https://github.com/equk/lastfm_feed

simple lasftm feed using php + xml
https://github.com/equk/lastfm_feed

Last synced: over 1 year ago
JSON representation

simple lasftm feed using php + xml

Awesome Lists containing this project

README

          

lastfm_feed
===========

*****************************************************************
Lastfm feed - equk.co.uk
*****************************************************************
lastfm feed - Copyright (C) 2014 Bradley Walden
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions. See GNU GPLv3.
*****************************************************************

*****************************************************************
Version: 0.3.0

Changelog:

0.1.0 - initial commit

0.2.0 - added function time_ago to show how long ago since
tracks were played

0.3.0 - code cleanup (indent etc)

*****************************************************************

To use this script you need to include this file using php.
You can then call the functions.

lastfmfeed('username','number_of_tracks')

eg: lastfmfeed('equilibriumuk','10');

There is also a function for css styles which can be put into
the header of the website/page.

eg: lastfmfeed_css();

To use this script you need to include lastfm_feed.php .. You can then call the functions.

There is also a function for css styles which can be put into
the header of the website/page.

Please see example.php for a working example of this code.

The example is also available live at lastfm.equk.co.uk

EXAMPLE:

![](https://raw.github.com/equk/lastfm_feed/master/example_screenshot.png)

```php






last.fm

```