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.5(9mo ago)07MITPHPPHP &gt;=7.4

Since Jul 17Pushed 9mo 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 1mo ago

READMEChangelogDependencies (2)Versions (6)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

25

—

LowBetter than 37% of packages

Maintenance55

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity30

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

Total

5

Last Release

298d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/51a647fcbd604183b0d2bb98a905034b62235acbe91ecc0ebebb319ecc6b1bc0?d=identicon)[alienlebarge](/maintainers/alienlebarge)

---

Top Contributors

[![alienlebarge](https://avatars.githubusercontent.com/u/611234?v=4)](https://github.com/alienlebarge "alienlebarge (7 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

[distantnative/retour-for-kirby

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

14689.4k1](/packages/distantnative-retour-for-kirby)[mzur/kirby-uniform

A versatile Kirby plugin to handle web form actions.

26068.3k13](/packages/mzur-kirby-uniform)[arnoson/kirby-vite

Vite helper for Kirby CMS

9759.2k3](/packages/arnoson-kirby-vite)[thathoff/kirby-git-content

Plugin to track changes to content in a git repository.

15343.7k](/packages/thathoff-kirby-git-content)[sylvainjule/locator

A map &amp; geolocation field, built on top of open-source services / Mapbox

11237.3k1](/packages/sylvainjule-locator)[tobimori/kirby-seo

The default choice for SEO on Kirby: Implement technical SEO &amp; Meta best practices with ease and provide an easy-to-use editor experience

10039.7k1](/packages/tobimori-kirby-seo)

PHPackages © 2026

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