calliostro/lastfm-client
Lightweight Last.fm API client for PHP 8.1+ with clean, modern methods for artists, albums, tracks, search, and charts. Uses Guzzle and supports API-key access for all calls plus session authentication for write actions like scrobbling and loving tracks.
Adopt if:
getArtistInfo()), named parameters, and IDE support (PHPStan, PSR-12).Look elsewhere if:
For Executives: "This package lets us integrate Last.fm’s music data and user activity in weeks, not months*. It’s a lightweight, battle-tested client that handles authentication, rate limits, and all 60+ Last.fm API endpoints—so our team can focus on building features like personalized recommendations or social music discovery, not HTTP clients. With support for scrobbling, charts, and user libraries, we can add depth to our music app without reinventing the wheel. It’s MIT-licensed, PHP 8.1+, and backed by modern tooling (Guzzle, PHPStan), so it’s low-risk and future-proof."*
For Engineers: *"This is a minimalist, opinionated Last.fm client for PHP 8.1+ that trades flexibility for simplicity. Key wins:
getArtistInfo() or scrobbleTrack() with named parameters (PHP 8.0+).AuthHelper for OAuth flows and session management.Tradeoffs:
Recommendation: Use this for any Last.fm integration in PHP 8.1+. For custom needs (e.g., offline sync), wrap it with your own layer."*
How can I help you explore Laravel packages today?