pouler / deezer-api
PHP Package for the Deezer API
Installs: 12 568
Dependents: 0
Suggesters: 0
Security: 0
Stars: 8
Watchers: 2
Forks: 4
Open Issues: 0
Requires
- php: >=8.1
- ext-json: *
- symfony/http-client: ^5.4|^6.0
Requires (Dev)
- phpunit/phpunit: ^9
- squizlabs/php_codesniffer: ^3.0
README
This is a PHP wrapper for the Deezer API.
Requirements
- PHP >=8.1
Installation
Install it using Composer:
composer require pouler/deezer-api
Usage
Before using the Deezer API, you'll need to create an app at Deezer's developer site. After you've obtained an access token you can retrieve information from a user.
<?php require 'vendor/autoload.php'; $curl = new \Symfony\Component\HttpClient\CurlHttpClient(); $client = new PouleR\DeezerAPI\DeezerAPIClient($curl); $client->setAccessToken(''); $api = new PouleR\DeezerAPI\DeezerAPI($client); print_r($api->getUserInformation());