PHPackages                             chrismou/phergie-irc-plugin-react-audioscrobbler - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. chrismou/phergie-irc-plugin-react-audioscrobbler

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

chrismou/phergie-irc-plugin-react-audioscrobbler
================================================

Phergie plugin for returning the current or last played song for a user on last.fm or libre.fm

v2.1.0(10y ago)055BSD-2-ClausePHPPHP &gt;=5.5.0

Since Jan 12Pushed 10y ago1 watchersCompare

[ Source](https://github.com/chrismou/phergie-irc-plugin-react-audioscrobbler)[ Packagist](https://packagist.org/packages/chrismou/phergie-irc-plugin-react-audioscrobbler)[ Docs](http://github.com/chrismou/phergie-irc-plugin-react-audioscrobbler)[ RSS](/packages/chrismou-phergie-irc-plugin-react-audioscrobbler/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (10)Versions (7)Used By (0)

Last.fm / Libre.fm plugin for [Phergie](http://github.com/phergie/phergie-irc-bot-react/)
=========================================================================================

[](#lastfm--librefm-plugin-for-phergie)

[Phergie](http://github.com/phergie/phergie-irc-bot-react/) plugin for returning the current or last played song for a user on last.fm or libre.fm.

[![Build Status](https://camo.githubusercontent.com/c0dfab2fbd0c57490a6b3e6a8e65d1b651bcea5112c862c64c9d766dd9199bd9/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f63687269736d6f752f706865726769652d6972632d706c7567696e2d72656163742d617564696f7363726f62626c65722f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/chrismou/phergie-irc-plugin-react-audioscrobbler/build-status/master)[![Test Coverage](https://camo.githubusercontent.com/a549f0010ea13fabdfc0e656962621f9126bdf4cb9f80c86ce47df0d2fd7fd62/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f63687269736d6f752f706865726769652d6972632d706c7567696e2d72656163742d617564696f7363726f62626c65722f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/chrismou/phergie-irc-plugin-react-audioscrobbler/coverage)[![Code Climate](https://camo.githubusercontent.com/4a9816a195cbd6be81e4c2401823b31fb7c705e5a9c3b096da57a69fd2a0172a/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f63687269736d6f752f706865726769652d6972632d706c7567696e2d72656163742d617564696f7363726f62626c65722f6261646765732f6770612e737667)](https://codeclimate.com/github/chrismou/phergie-irc-plugin-react-audioscrobbler)[![Buy me a beer](https://camo.githubusercontent.com/84435278ebf644da9ba4ece64a76602c16bb88edd474ee54cc757a17eca9666f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f6e6174652d50617950616c2d3031394344452e737667)](https://www.paypal.me/chrismou)

About
-----

[](#about)

[Phergie](http://github.com/phergie/phergie-irc-bot-react/) plugin for returning the current or last played song for a user on last.fm or libre.fm. By default, the plugin responds to the commands "lastfm username" and "librefm username" (without the quotes).

Install
-------

[](#install)

The recommended method of installation is [through composer](http://getcomposer.org).

```
composer require chrismou/phergie-irc-plugin-react-audioscrobbler
```

See Phergie documentation for more information on [installing and enabling plugins](https://github.com/phergie/phergie-irc-bot-react/wiki/Usage#plugins).

Configuration
-------------

[](#configuration)

For last.fm lookups, you need a free API key which you can get from [here](http://www.last.fm/api). LibreFM works out of the box.

```
new \Chrismou\Phergie\Plugin\Audioscrobbler\Plugin(array(
    'lastfm' => 'YOUR_API_KEY'
))
```

CommandHelp compatibility
-------------------------

[](#commandhelp-compatibility)

The plugin activates lastfm when it sees you've included a lastfm config, so in order to get [CommandHelp](http://github.com/phergie/phergie-irc-plugin-react-commandhelp/)to show the plugin in it's command list , you'll need to pass a mock value:

```
new \Phergie\Irc\Plugin\React\CommandHelp\Plugin(array(
    'plugins' => array(
        new \Chrismou\Phergie\Plugin\Audioscrobbler\Plugin(array(
            'lastfm' => true
        )),
    )
))
```

Adding this line to your CommandHelp config should force the lastfm command to be displayed.

Tests
-----

[](#tests)

To run the unit test suite:

```
curl -s https://getcomposer.org/installer | php
php composer.phar install
./vendor/bin/phpunit

```

If you use docker, you can also run the test suite against all supported PHP versions:

```
./vendor/bin/dunit

```

License
-------

[](#license)

Released under the BSD License. See `LICENSE`.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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 ~71 days

Recently: every ~83 days

Total

6

Last Release

3783d ago

Major Versions

v1.1.0 → v2.0.02015-12-16

### Community

Maintainers

![](https://www.gravatar.com/avatar/98e0798db43673fb89fe589cbb45fb4c6547d3bdbe76d7efa30d96f24ffc677e?d=identicon)[chrismou](/maintainers/chrismou)

---

Top Contributors

[![chrismou](https://avatars.githubusercontent.com/u/319883?v=4)](https://github.com/chrismou "chrismou (59 commits)")

---

Tags

pluginbotircphergie

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/chrismou-phergie-irc-plugin-react-audioscrobbler/health.svg)

```
[![Health](https://phpackages.com/badges/chrismou-phergie-irc-plugin-react-audioscrobbler/health.svg)](https://phpackages.com/packages/chrismou-phergie-irc-plugin-react-audioscrobbler)
```

PHPackages © 2026

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