Looking for a player?
LastFM – Music Engine (incl. YouTube links)
The LastFM Music Engine is an easy lightweight class that makes it simple to integrate and process music info from last fm. The class supports Trending music, Artists search, Track search, Album search & Artist info (toptracks, bio, tags, similar artists).
The class has the following functions:
- Lightweight class libary (clean, easy to understand code)
- Return data in 2 lines of code
- Easy Integration
- Return Array & HTML
- Trending music (based on region ISO)
- Search Artists
- Search Tracks/Songs
- Search Albums
- Artist info (Top Tracks, Bio, Tags, Similar Artists)
- Ajax Artist/Track & Album search
- Styled result items included
- No refresh for search needed
- Fallback image
- Update: YouTube link track return
Demo’s
Full demo
Trending music demo
Search for Artist/Track/Album demo
Get info from artist demo
Easy install
- STEP 1 (set your api key) const APIKEY = 'YOUR_API_KEY'; - STEP 2 (Include & initalize class) include_once('lastfm.class.php'); $lstfm = new Lastfm();
Class functions:
$lstfm->trendingTracks('Belgium'); //gets the trending tracks based on a country $lstfm->trendingArtists('Belgium', 10); //gets the trending artists based on a country limited to 10 items (limit parameter) $lstfm->searchTracks('Soldier'); //searchs tracks based on a search term $lstfm->searchArtists('Marco Bai') //searchs artists based on a search term $lstfm->searchArtists('Marco Bai', 20) // same with a limit of 20 results $lstfm->searchAlbums('Half power'); //searchs albums based on the given term $lstfm->searchArtistInfo('Eminem', array('toptracks', 'bio')); //gets the toptracks, bio (bio text, tags & similar artists) based on a full artist name $lstfm->showHtmlList($array, 'type'); //returns an styled unorderd (ul) html list (supports types: artists/tracks/albums) $lstfm->findVideo("Eminem", "Sing for the moment"); //returns an youtube link based on the given artist & title
Update 29-10-2014
- Youtube API Tracks added
[eltd_button size=”huge-full-width” type=”outline” text=”Download & Demo Links” custom_class=”#” icon_pack=”font_awesome” fa_icon=”” link=”” target=”_blank” color=”” hover_color=”” background_color=”” hover_background_color=”” border_color=”” hover_border_color=”” font_size=”” font_weight=”” margin=””]
Demo = LastFM – Music Engine (incl. YouTube links)
[eltd_button size=”huge” type=”” text=”Full Live Demo” custom_class=”” icon_pack=”font_awesome” fa_icon=”fa-laptop” link=”https://codecanyon.net/item/lastfm-music-engine-incl-youtube-links/9278307″ target=”_blank” color=”” hover_color=”” background_color=”” hover_background_color=”” border_color=”” hover_border_color=”” font_size=”” font_weight=”” margin=””]
Kindly Note: We update new contents like WordPress Themes, Plugins, PHP Scripts everyday. But remember that you should never use this items in a commercial website. All the contents posted here for development & testing purpose only. We’re not responsible for any damage, use at your own RISK! We highly recommend to buy LastFM – Music Engine (incl. YouTube links) from the The Developer ( Fritz321 ) website. Thank you.
Download = LastFM – Music Engine (incl. YouTube links)-[Updated].zip