Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Lastfm Client Laravel Package

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.

View on GitHub
Deep Wiki
Context7
v2.0.0

This release introduces significant improvements with enhanced authentication, performance optimizations, and a cleaner API design.

Breaking Changes

  • Method Naming: All methods follow consistent verb-first pattern (getArtistInfo, getTrackInfo, scrobbleTrack)
  • Authentication: Restructured with dedicated setApiCredentials() method and LastFmClientFactory
  • Parameter Handling: Enhanced with named parameter support and camelCase conversion

New Features

  • New AuthHelper class for streamlined Last.fm authentication workflows
  • LastFmClientFactory with authentication methods (createWithApiKey, createWithSession, createWithMobileAuth)
  • ConfigCache singleton for performance-optimized configuration management
  • Enhanced parameter validation with security and performance limits
  • Improved error handling with descriptive messages

Migration Required

All method calls must be updated. See CHANGELOG.md and UPGRADE.md for detailed migration guide.

Documentation

v1.0.0

Initial release of an ultra-lightweight Last.fm API client for PHP 8.1+

Added

  • Initial release of an ultra-lightweight Last.fm API client for PHP 8.1+
  • Service-description-based architecture with only two classes
  • Direct method mapping (trackGetInfo()track.getInfo)
  • Support for all 60+ Last.fm API endpoints (track, artist, album, user, chart, tag, geo, library, auth methods)
  • Full authentication support (API key and OAuth session-based)
  • Scrobbling and now playing functionality
  • Comprehensive error handling and type safety
  • IDE support with method documentation and Last.fm API links
  • PHPStan Level 8 compatibility for maximum static analysis
  • PSR-12 compliant code with 100% test coverage
  • Complete authentication examples and setup documentation
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor