pouler/deezer-api

PHP Package for the Deezer API

Installs: 12 789

Dependents: 0

Suggesters: 0

Security: 0

Stars: 9

Watchers: 2

Forks: 4

Open Issues: 0

pkg:composer/pouler/deezer-api

1.1.2 2022-12-08 13:31 UTC

This package is auto-updated.

Last update: 2025-10-08 19:48:25 UTC


README

Packagist

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());