kerox / spotify
PHP Library to easily use Spotify API
1.0.0
2019-01-03 15:26 UTC
Requires
- php: >=7.1.0
- ext-json: *
- fig/http-message-util: ^1.1
- psr/http-client: ^0.3.0
- zendframework/zend-diactoros: ^2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.5
- phpunit/phpunit: ^7.4
Suggests
- kerox/oauth2-spotify: To generate OAuth token for Spotify
- php-http/httplug: To send PSR-7 request with PSR-18 compatible HTTP client
This package is auto-updated.
Last update: 2024-11-29 05:33:03 UTC
README
Spotify
A PHP Library to easily use Spotify API
Warning
This library use PSR-18 HTTP Client interface, which means that no HTTP Client, like Guzzle or httplug, are provided within. You will need to require them separately.
Installation
You can install Spotify using Composer:
composer require kerox/spotify
You will then need to:
- run
composer install
to get these dependencies added to your vendor directory - add the autoloader to your application with this line:
require('vendor/autoload.php');
Usage
Please, refer to the wiki to learn how to use this library
Features
API
- Albums
- Artists
- Audio
- Browse
- Follow
- Me
- Playlists
- Search
- Tracks
- Users