2017 © Pedro Peláez
 

library deezer-api

PHP Package for the Deezer API

image

pouler/deezer-api

PHP Package for the Deezer API

  • Friday, November 3, 2017
  • by PouleR
  • Repository
  • 1 Watchers
  • 0 Stars
  • 974 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 29 % Grown

The README.md

Deezer API PHP

Packagist, (*1)

This is a PHP wrapper for the Deezer API., (*2)

Requirements

  • PHP >=8.1

Installation

Install it using Composer:, (*3)

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., (*4)

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

The Versions