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
- Host: GitHub
- URL: https://github.com/equk/lastfm_feed
- Owner: equk
- License: gpl-3.0
- Created: 2013-09-08T20:08:14.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2014-04-01T14:08:00.000Z (about 12 years ago)
- Last Synced: 2025-01-24T07:11:26.331Z (over 1 year ago)
- Language: PHP
- Size: 219 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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:

```php
last.fm
```