2017 © Pedro Peláez
 

library lastfm

Wrapper of the last.fm API.

image

luizpedone/lastfm

Wrapper of the last.fm API.

  • Sunday, March 4, 2018
  • by luizpedone
  • Repository
  • 0 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Last.fm API Wrapper

Maintainability Test Coverage CircleCI, (*1)

This package wraps the last.fm API in a easy to use PHP package. This package is under development at the moment., (*2)

Installation

To install it using composer just execute the following command:, (*3)

composer require luizpedone/lastfm

How to use it

<?php

$lastFm = new \LuizPedone\LastFM\LastFM('your-last-fm-api-key');

$topArtists = $lastFm->user()
    ->topArtists('luiz-pedone')
    ->period(Period::LAST_MONTH)
    ->limit(10)
    ->get();

// Outputs an array of \LuizPedone\LastFM\User\Entity\TopArtist objects
foreach ($topArtists as $topArtist) {
    echo $topArtist->getName();
    echo $topArtist->getPlayCount();
}

The Versions

04/03 2018

dev-master

9999999-dev

Wrapper of the last.fm API.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Luiz Pedone