PHPackages                             exptom/scrobbler-log - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. exptom/scrobbler-log

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

exptom/scrobbler-log
====================

A library to parse audioscrobbler log files produced by Rockbox and other devices

09PHP

Since Jun 10Pushed 13y ago1 watchersCompare

[ Source](https://github.com/exptom/scrobblerlog_parser)[ Packagist](https://packagist.org/packages/exptom/scrobbler-log)[ RSS](/packages/exptom-scrobbler-log/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

scrobblerlog\_parser
====================

[](#scrobblerlog_parser)

Audioscrobbler .scrobbler.log Parser, written in PHP and licensed under the MIT license (see LICENSE.txt)

A very simple parser that can handle v1.0 and v1.1 audioscrobbler log files as defined on the [audioscrobbler wiki](http://www.audioscrobbler.net/wiki/Portable_Player_Logging).

Usage
-----

[](#usage)

```
$parser = new ScrobblerLog\Parser('path/to/scrobbler.log');
$parsedData = $parser->parse();
```

If the device that has generated the log file is not timezone aware then the timezone must be specified before executing a parse:

```
$parser = new ScrobblerLog\Parser('path/to/scrobbler.log');
$parsedData = $parser->setTimezone('Europe/London')->parse();
```

The timezone can be any of the timezone strings listed in the [PHP docs](http://php.net/manual/en/timezones.php).

The parsed data is returned as an array of `LoggedTrack` objects.

Other Features
--------------

[](#other-features)

Some log file information is available after a parse has been executed:

```
$parser->getClient(); //get the name of the device that generated the scrobbler.log
$parser->getVersion(); //get the version of the scrobbler.log format that has been parsed (1.0 or 1.1)
```

and also some very basic stats...

```
$parser->getTotalTracksLogged(); //get total number of tracks logged
$parser->getTotalTracksPlayed(); //get total number of tracks listend to
$parser->getTotalTracksSkipped(); //get total number of tracks skipped
$parser->getTotalPlayTime(); //get total length (in seconds) or tracks played
```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4302032?v=4)[Tom Ford](/maintainers/exptom)[@exptom](https://github.com/exptom)

---

Top Contributors

[![exptom](https://avatars.githubusercontent.com/u/4302032?v=4)](https://github.com/exptom "exptom (9 commits)")

### Embed Badge

![Health badge](/badges/exptom-scrobbler-log/health.svg)

```
[![Health](https://phpackages.com/badges/exptom-scrobbler-log/health.svg)](https://phpackages.com/packages/exptom-scrobbler-log)
```

###  Alternatives

[mck89/peast

Peast is PHP library that generates AST for JavaScript code

19037.7M41](/packages/mck89-peast)[sauladam/shipment-tracker

Parses tracking information for several carriers, like UPS, USPS, DHL and GLS by simply scraping the data. No need for any kind of API access.

9642.0k](/packages/sauladam-shipment-tracker)[jstewmc/rtf

Read and write Rich Text Format (RTF) documents with PHP

46143.1k6](/packages/jstewmc-rtf)[moonshine/layouts-field

Field for repeating groups of fields for MoonShine

107.9k](/packages/moonshine-layouts-field)[tcds-io/php-jackson

A lightweight, flexible object serializer for PHP, inspired by FasterXML/jackson

112.9k10](/packages/tcds-io-php-jackson)

PHPackages © 2026

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