2017 © Pedro Peláez
 

library laravel-deezer-api

An easy way to interact with the Deezer API from any Laravel >= 5.3 application.

image

atomescrochus/laravel-deezer-api

An easy way to interact with the Deezer API from any Laravel >= 5.3 application.

  • Monday, October 9, 2017
  • by atomescrochus
  • Repository
  • 1 Watchers
  • 4 Stars
  • 53 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 13 Versions
  • 0 % Grown

The README.md

Search the Deezer Web API

Latest Stable Version License Total Downloads, (*1)

The atomescrochus/laravel-deezer-api package provide and easy way to search the Deezer Web API from any Laravel >= 5.3 application., (*2)

This package is usable in production, but should still be considered a work in progress (contribution welcomed!). It requires PHP >= 7.0., (*3)

Install

You can install this package via composer:, (*4)

``` bash $ composer require atomescrochus/laravel-deezer-api, (*5)


Then you have to install the package' service provider, _unless you are running Laravel >=5.5_ (it'll use package auto-discovery) : ```php // config/app.php 'providers' => [ ... Atomescrochus\Deezer\DeezerApiServiceProvider::class, ];

Usage

``` php // here is an example query to search Deezer's API $deezer = new \Atomescrochus\Deezer\Deezer();, (*6)

// You can execute a basic search, and hope for the best $results = $deezer->basicSearch("yolo");, (*7)

// If you already have a Deezer ID, you can do thise to get the track $results = $deezer->getTrackById(18042083); //, (*8)

// But you can also execute more complex search $results = $deezer->artist() // string ->album() // string ->track() // string ->label() // string ->minimumDuration() // int ->maximumDuration() // int ->minimumBPM() // int ->maximumBPM() // int ->search();, (*9)

// These are the options you can set with every kind of call $deezer->cache(120) // an integer (number of minutes), for the cache to expire, can be 0, (*10)

// Theses are options compatible with basicSearch() and complexe searches $deezer->strictMode() // deactivate fuzzy searching on Deezer's side $deezer->type('track') // defaults to track if not set. // see http://developers.deezer.com/api/search#connections for possible search types $deezer->order('ranking') // defaults to ranking if not set. Use lower case! // see http://developers.deezer.com/api/search#infos for possible order ```, (*11)

Results

In the example above, what is returned in $results is an object containing: a collection of results; a count value for the results; raw response data; and the unformatted query sent to the API., (*12)

Tests

This is basically a wrapper around the API. We're assuming the Deezer API has been tested, and we won't duplicated tests., (*13)

Change log

Please see CHANGELOG for more information on what has changed recently., (*14)

Contributing

Please see CONTRIBUTING and CONDUCT for details., (*15)

Security

If you discover any security related issues, please email jp@atomescroch.us instead of using the issue tracker., (*16)

Credits

License

The MIT License (MIT). Please see License File for more information., (*17)

The Versions

09/10 2017

dev-master

9999999-dev https://github.com/atomescrochus/laravel-deezer-api

An easy way to interact with the Deezer API from any Laravel >= 5.3 application.

  Sources   Download

MIT

The Requires

 

The Development Requires

music atomescrochus deezer laravel-deezer-api

09/10 2017

dev-develop

dev-develop https://github.com/atomescrochus/laravel-deezer-api

An easy way to interact with the Deezer API from any Laravel >= 5.3 application.

  Sources   Download

MIT

The Requires

 

The Development Requires

music atomescrochus deezer laravel-deezer-api

09/10 2017

1.5.1

1.5.1.0 https://github.com/atomescrochus/laravel-deezer-api

An easy way to interact with the Deezer API from any Laravel >= 5.3 application.

  Sources   Download

MIT

The Requires

 

The Development Requires

music atomescrochus deezer laravel-deezer-api

09/10 2017

1.5.0

1.5.0.0 https://github.com/atomescrochus/laravel-deezer-api

An easy way to interact with the Deezer API from any Laravel >= 5.3 application.

  Sources   Download

MIT

The Requires

 

The Development Requires

music atomescrochus deezer laravel-deezer-api

04/04 2017

1.4.0

1.4.0.0 https://github.com/atomescrochus/laravel-deezer-api

An easy way to interact with the Deezer API from any Laravel >= 5.3 application.

  Sources   Download

MIT

The Requires

 

The Development Requires

music atomescrochus deezer laravel-deezer-api

13/01 2017

1.3.4

1.3.4.0 https://github.com/atomescrochus/laravel-deezer-api

An easy way to interact with the Deezer API from any Laravel >= 5.3 application.

  Sources   Download

MIT

The Requires

 

The Development Requires

music atomescrochus deezer laravel-deezer-api

13/01 2017

1.3.3

1.3.3.0 https://github.com/atomescrochus/laravel-deezer-api

An easy way to interact with the Deezer API from any Laravel >= 5.3 application.

  Sources   Download

MIT

The Requires

 

The Development Requires

music atomescrochus deezer laravel-deezer-api

12/01 2017

1.3.2

1.3.2.0 https://github.com/atomescrochus/laravel-deezer-api

An easy way to interact with the Deezer API from any Laravel >= 5.3 application.

  Sources   Download

MIT

The Requires

 

The Development Requires

music atomescrochus deezer laravel-deezer-api

08/01 2017

1.3.1

1.3.1.0 https://github.com/atomescrochus/laravel-deezer-api

An easy way to interact with the Deezer API from any Laravel >= 5.3 application.

  Sources   Download

MIT

The Requires

 

The Development Requires

music atomescrochus deezer laravel-deezer-api

08/01 2017

1.3.0

1.3.0.0 https://github.com/atomescrochus/laravel-deezer-api

An easy way to interact with the Deezer API from any Laravel >= 5.3 application.

  Sources   Download

MIT

The Requires

 

The Development Requires

music atomescrochus deezer laravel-deezer-api

08/01 2017

1.2.0

1.2.0.0 https://github.com/atomescrochus/laravel-deezer-api

An easy way to interact with the Deezer API from any Laravel >= 5.3 application.

  Sources   Download

MIT

The Requires

 

The Development Requires

music atomescrochus deezer laravel-deezer-api

08/01 2017

1.0.0

1.0.0.0 https://github.com/atomescrochus/laravel-deezer-api

An easy way to interact with the Deezer API from any Laravel >= 5.3 application.

  Sources   Download

MIT

The Requires

 

The Development Requires

music atomescrochus deezer laravel-deezer-api

08/01 2017

0.1.0

0.1.0.0 https://github.com/atomescrochus/laravel-deezer-api

An easy way to interact with the Deezer API from any Laravel >= 5.3 application.

  Sources   Download

MIT

The Requires

 

The Development Requires

music atomescrochus deezer laravel-deezer-api