PHPackages                             alienlebarge/lastfm-sync - 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. alienlebarge/lastfm-sync

ActiveKirby-plugin[Utility &amp; Helpers](/categories/utility)

alienlebarge/lastfm-sync
========================

Kirby plugin to synchronize loved tracks from Last.fm and automatically create jam pages

0.0.6(4mo ago)09MITPHPPHP &gt;=7.4

Since Jul 17Pushed 4mo agoCompare

[ Source](https://github.com/alienlebarge/lastfm-sync)[ Packagist](https://packagist.org/packages/alienlebarge/lastfm-sync)[ RSS](/packages/alienlebarge-lastfm-sync/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (4)Versions (7)Used By (0)

Last.fm Sync Plugin
===================

[](#lastfm-sync-plugin)

Kirby plugin to synchronize loved tracks from Last.fm and automatically create jam pages.

Installation
------------

[](#installation)

1. Place the `lastfm-sync` folder in `site/plugins/`
2. Configure options in `site/config/config.php`

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

[](#configuration)

```
return [
    'alienlebarge.lastfm-sync' => [
        'apiKey' => 'your-lastfm-api-key',
        'user' => 'your-lastfm-username',
        'webhookLimit' => 20,
        'webhookSecret' => 'your-webhook-secret',
        'contentDir' => 'jams'
    ]
];
```

### Options

[](#options)

- `apiKey`: Last.fm API key
- `user`: Last.fm username
- `webhookLimit`: Number of tracks to retrieve (default: 20)
- `webhookSecret`: Security token for webhook
- `contentDir`: Content directory (default: 'jams')

Usage
-----

[](#usage)

### Webhook

[](#webhook)

Synchronization via POST webhook:

```
curl -X POST "https://your-site.com/lastfm-sync/cron/sync-jams" -d "secret=your-webhook-secret"
```

Or call the URL directly with GET parameter:

```
curl -X POST "https://your-site.com/lastfm-sync/cron/sync-jams?secret=your-webhook-secret"
```

### Page Methods

[](#page-methods)

```
// In a template or controller
$result = $page->syncJams(50); // Sync max 50 tracks
```

### Site Methods

[](#site-methods)

```
// Access to service
$syncService = site()->lastfmSync();
$result = $syncService->sync(20);
```

Response
--------

[](#response)

```
{
    "success": true,
    "message": "Jams synchronization completed via Last.fm plugin",
    "data": {
        "total": 20,
        "imported": 2,
        "skipped": 18,
        "errors": 0
    }
}
```

Security
--------

[](#security)

The webhook uses a secret token for authentication. Configure `webhookSecret` in your options.

License
-------

[](#license)

MIT

###  Health Score

31

—

LowBetter than 65% of packages

Maintenance76

Regular maintenance activity

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

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

Recently: every ~66 days

Total

6

Last Release

133d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/611234?v=4)[Cédric Aellen](/maintainers/alienlebarge)[@alienlebarge](https://github.com/alienlebarge)

---

Top Contributors

[![alienlebarge](https://avatars.githubusercontent.com/u/611234?v=4)](https://github.com/alienlebarge "alienlebarge (8 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/alienlebarge-lastfm-sync/health.svg)

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

###  Alternatives

[getkirby/cms

The Kirby core

1.5k606.6k541](/packages/getkirby-cms)[medienbaecker/kirby-modules

Easily add modules to your pages

895.6k1](/packages/medienbaecker-kirby-modules)[fabianmichael/kirby-meta

Your all-in-one powerhouse for any SEO and metadata needs imaginable.

7011.8k1](/packages/fabianmichael-kirby-meta)[tobimori/kirby-dreamform

Kirby DreamForm is an opiniated form builder plugin for Kirby CMS 4+ that makes forms work like magic

6012.6k1](/packages/tobimori-kirby-dreamform)[medienbaecker/kirby-alter

262.5k](/packages/medienbaecker-kirby-alter)[grommasdietz/kirby-hidden-characters

Kirby CMS plugin for visualising hidden characters in the Panel

462.2k](/packages/grommasdietz-kirby-hidden-characters)

PHPackages © 2026

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