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(2mo ago)08MITPHPPHP &gt;=7.4

Since Jul 17Pushed 2mo 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 today

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

32

—

LowBetter than 69% of packages

Maintenance83

Actively maintained with recent releases

Popularity4

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

87d 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.5k584.8k474](/packages/getkirby-cms)[medienbaecker/kirby-modules

Easily add modules to your pages

895.5k1](/packages/medienbaecker-kirby-modules)[distantnative/retour-for-kirby

Manage redirects and track 404s right from the Kirby CMS Panel

14698.5k1](/packages/distantnative-retour-for-kirby)[arnoson/kirby-vite

Vite helper for Kirby CMS

9765.1k3](/packages/arnoson-kirby-vite)[bnomei/kirby3-dotenv

Kirby Plugin for environment variables from .env

4149.6k2](/packages/bnomei-kirby3-dotenv)[medienbaecker/kirby-alter

242.1k](/packages/medienbaecker-kirby-alter)

PHPackages © 2026

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