Weave 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
2.0.0

Added

  • New AuthHelper class for streamlined Last.fm authentication workflows
  • LastFmClientFactory with authentication methods (createWithApiKey, createWithSession, createWithMobileAuth)
  • ConfigCache singleton for performance-optimized configuration management
  • Comprehensive integration and unit test suite with 100% coverage
  • Enhanced parameter validation with security and performance limits

Changed

  • BREAKING: Method names changed to verb-first convention (e.g. artistGetInfo() → getArtistInfo())
  • BREAKING: Enhanced parameter handling with named parameter support and camelCase conversion
  • BREAKING: Restructured authentication flow with dedicated setApiCredentials() method
  • BREAKING: No backward compatibility for old method names to ensure clean API design
  • Improved error handling with more descriptive messages and proper exception types
  • Performance optimizations including configuration caching and efficient type conversions

Fixed

  • Parameter validation edge cases and security vulnerabilities
  • HTTP response stream handling and JSON error processing
  • Authentication signature generation consistency
  • Null parameters causing Error Code 6 by properly omitting them from API requests
  • Misleading error messages for authentication-required operations now show clear authentication requirements instead of "missing required parameter"
1.0.0

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 (getTrackInfo() → track.getInfo)
  • Support for all 55+ 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.
coleus/frame
thtg88/journalism
filagora/filagora-ai-forums
rlacerda83/query-parser
socialdept/atp-orm
cboxdk/laravel-assistant-client
socialdept/atp-resolver
socialdept/tenant-domains
tautvydasr/blade-class-names
socialdept/color-scales
maherelgamil/controller
coleus/widgets
coleus/table
coleus/users
coleus/music
coleus/health
coleus/calendar
coleus/notes
coleus/support
coleus/settings