PHPackages                             deanx/lastfm-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. deanx/lastfm-api

ActiveLibrary[API Development](/categories/api)

deanx/lastfm-api
================

Last.fm webservice client

v1.2(10y ago)021MITPHPPHP &gt;=5.3.3

Since Mar 17Pushed 10y ago1 watchersCompare

[ Source](https://github.com/deanx/PHP-Last.fm-API)[ Packagist](https://packagist.org/packages/deanx/lastfm-api)[ Docs](https://github.com/matto1990/PHP-Last.fm-API)[ RSS](/packages/deanx-lastfm-api/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

PHP Last.FM API
===============

[](#php-lastfm-api)

Thank you for using PHP Last.FM API!

You will need your own API key by registering at:

Installation
============

[](#installation)

`composer require deanx/lastfm-api`

Usage
=====

[](#usage)

*❗ Only read calls are tested (2016-03-17)*

```
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!

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

3706d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d3aef366d3d116825e1651f8933de743f3f3d22310a85ea4efda5372c7c01f76?d=identicon)[deanx](/maintainers/deanx)

---

Top Contributors

[![devilcius](https://avatars.githubusercontent.com/u/504695?v=4)](https://github.com/devilcius "devilcius (8 commits)")[![deanx](https://avatars.githubusercontent.com/u/367814?v=4)](https://github.com/deanx "deanx (7 commits)")[![dzantiev](https://avatars.githubusercontent.com/u/411049?v=4)](https://github.com/dzantiev "dzantiev (2 commits)")[![peppy](https://avatars.githubusercontent.com/u/191335?v=4)](https://github.com/peppy "peppy (2 commits)")[![jwoldan](https://avatars.githubusercontent.com/u/611085?v=4)](https://github.com/jwoldan "jwoldan (1 commits)")[![stepri](https://avatars.githubusercontent.com/u/3134589?v=4)](https://github.com/stepri "stepri (1 commits)")[![bhoodream](https://avatars.githubusercontent.com/u/1740470?v=4)](https://github.com/bhoodream "bhoodream (1 commits)")

---

Tags

apilast.fmwebservice client

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/deanx-lastfm-api/health.svg)

```
[![Health](https://phpackages.com/badges/deanx-lastfm-api/health.svg)](https://phpackages.com/packages/deanx-lastfm-api)
```

###  Alternatives

[matto1990/lastfm-api

Last.fm webservice client

10815.2k](/packages/matto1990-lastfm-api)[nucleos/lastfm

Last.fm webservice client for php.

1812.9k2](/packages/nucleos-lastfm)[m165437/laravel-blueprint-docs

API Blueprint Renderer for Laravel

22779.0k](/packages/m165437-laravel-blueprint-docs)[barryvanveen/lastfm

Last.fm API client for PHP 7+

254.5k](/packages/barryvanveen-lastfm)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
