Search by

pouler / deezer-api

PouleR

PHP Package for the Deezer API

Package info

github.com/PouleR/deezer-api

pkg:composer/pouler/deezer-api

Statistics

Installs: 13 033

Dependents: 0

Suggesters: 0

Stars: 10

Open Issues: 0

1.1.2 2022-12-08 13:31 UTC

This package is auto-updated.

Last update: 2026-09-08 21:39:53 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());