andig / spotify-web-api-extensions
Guzzle Adapter for use with SpotifyWebApi
Installs: 12
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/andig/spotify-web-api-extensions
Requires
- doctrine/cache: ^1.6
- guzzlehttp/guzzle: ^6.2
- jwilsson/spotify-web-api-php: ^1.3.4
- kevinrob/guzzle-cache-middleware: ^1.4
This package is auto-updated.
Last update: 2025-09-25 09:41:20 UTC
README
Guzzle Adapter for use with SpotifyWebApi (https://github.com/jwilsson/spotify-web-api-php)
Installation
To install run:
composer require andig/spotify-web-api-extensions:dev-master
Usage
See example.php
for how to use Guzzle as HTTP client for SpotifyWebApi:
$guzzleAdapter = new GuzzleRequestAdapter(
GuzzleClientFactory::create(
new FilesystemCache(__DIR__ . '/cache')
)
);
$api = new SpotifyWebAPI($guzzleAdapter);
print_r($api->search('Nothing else matters', ['track'], ['market' => 'DE']));