2017 © Pedro Peláez
 

library lastfm-api

Last.fm webservice client

image

deanx/lastfm-api

Last.fm webservice client

  • Sunday, April 17, 2016
  • by deanx
  • Repository
  • 1 Watchers
  • 0 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 39 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

PHP Last.FM API

Thank you for using PHP Last.FM API!, (*1)

You will need your own API key by registering at: http://www.last.fm/api, (*2)

Installation

composer require deanx/lastfm-api, (*3)

Usage

:exclamation: Only read calls are tested (2016-03-17), (*4)

use LastFmApi\Api\AuthApi;
use LastFmApi\Api\ArtistApi;

class LastFm
{
    private $apiKey;
    private $artistApi;

    public function __construct()
    {
        $this->apiKey = 'apikeyfromlastfm'; //required
        $auth = new AuthApi('setsession', array('apiKey' => $this->apiKey));
        $this->artistApi = new ArtistApi($auth);
    }
    public function getBio($artist)
    {
        $artistInfo = $this->artistApi->getInfo(array("artist" => $artist));

        return $artistInfo['bio'];
    }   
}

Enjoy!, (*5)

The Versions

17/04 2016

dev-master

9999999-dev https://github.com/deanx/PHP-Last.fm-API

Last.fm webservice client

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

api last.fm webservice client

17/03 2016

v1.2

1.2.0.0 https://github.com/matto1990/PHP-Last.fm-API

Last.fm webservice client

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

by Avatar Matt
by Marcos

api last.fm webservice client

17/03 2016

v1.1

1.1.0.0 https://github.com/devilcius/ExtraValidatorBundle

Extra validators for spanish CCC, DNI...

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

by Avatar Matt
by Marcos

api last.fm webservice client