{"repo":"aerni/laravel-spotify","free":true,"listed":false,"github":"https://github.com/aerni/laravel-spotify","clone":"git clone https://github.com/aerni/laravel-spotify.git","description":"Spotify for Laravel is a simple wrapper around the Spotify Web API that makes working with its endpoints a breeze!","language":"PHP","stars":207,"topics":["spotify","spotify-api","spotify-web-api","spotify-web-api-laravel","laravel","laravel-package"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Spotify for Laravel An easy to use Spotify Web API wrapper for Laravel Installation • Usage Example • Optional Parameters • Spotify API Reference • Introduction Spotify for Laravel makes working with the Spotify Web API a breeze. It provides straight forward methods for each endpoint and a fluent interface for optional parameters. The package supports all Spotify Web API endpoints that are accessible with the Client Credentials Flow. Installation Install the package using Composer. The package will automatically register itself. Publish the config of the package. The following config will be published to config/spotify.php . Set the Client ID and Client Secret of your Spotify App in your .env file. Usage Example Import the package at the top of your file. All of the following examples use the Facade. Search for tracks with the name Closed on Sunday . Important: The get() method acts as the final method of the fluent interface. Make sure to always call it last in the method chain to execute a request to the Spotify Web API. Optional Parameters You may pass optional parameters to your requests using the fluent interface provided by this package. A common use case is to set a limit and offset to your request. Parameter Methods API Reference Consult the Spotify Web API Reference Documentation to check which parameters are available to what endpoint. Resetting Defaults You may want to reset the default setting of country , locale or market for a given request. You may do so by cal","default_branch":null,"files":null,"tree":[],"storefront":"/r/aerni","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/aerni/laravel-spotify/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}