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
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.
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament