{"id":22934591,"url":"https://github.com/mikelgoig/laravel-spotify-wrapper","last_synced_at":"2025-08-12T18:30:56.991Z","repository":{"id":62527735,"uuid":"157246830","full_name":"mikelgoig/laravel-spotify-wrapper","owner":"mikelgoig","description":"A Laravel wrapper for Spotify's Web API 🎧","archived":false,"fork":false,"pushed_at":"2018-11-27T11:21:18.000Z","size":31,"stargazers_count":6,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-24T11:19:22.176Z","etag":null,"topics":["laravel","package","php","spotify"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/mgoigfer/laravel-spotify-wrapper","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mikelgoig.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-12T16:58:02.000Z","updated_at":"2024-10-31T05:44:33.000Z","dependencies_parsed_at":"2022-11-02T14:16:43.692Z","dependency_job_id":null,"html_url":"https://github.com/mikelgoig/laravel-spotify-wrapper","commit_stats":null,"previous_names":["mgoigfer/laravel-spotify-wrapper"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikelgoig%2Flaravel-spotify-wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikelgoig%2Flaravel-spotify-wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikelgoig%2Flaravel-spotify-wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikelgoig%2Flaravel-spotify-wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikelgoig","download_url":"https://codeload.github.com/mikelgoig/laravel-spotify-wrapper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229699865,"owners_count":18109852,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["laravel","package","php","spotify"],"created_at":"2024-12-14T11:44:24.619Z","updated_at":"2024-12-14T11:44:25.104Z","avatar_url":"https://github.com/mikelgoig.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Spotify Wrapper\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/mgoigfer/laravel-spotify-wrapper.svg?style=flat-square)](https://packagist.org/packages/mgoigfer/laravel-spotify-wrapper)\n[![Build Status](https://img.shields.io/travis/mgoigfer/laravel-spotify-wrapper/master.svg?style=flat-square)](https://travis-ci.org/mgoigfer/laravel-spotify-wrapper)\n[![Quality Score](https://img.shields.io/scrutinizer/g/mgoigfer/laravel-spotify-wrapper.svg?style=flat-square)](https://scrutinizer-ci.com/g/mgoigfer/laravel-spotify-wrapper)\n[![Total Downloads](https://img.shields.io/packagist/dt/mgoigfer/laravel-spotify-wrapper.svg?style=flat-square)](https://packagist.org/packages/mgoigfer/laravel-spotify-wrapper)\n\nThis is a PHP wrapper for [jwilsson/spotify-web-api-php](https://github.com/jwilsson/spotify-web-api-php). It includes:\n\n* Authorization flow helpers.\n\n## Installation\n\nYou can install this package via [Composer](https://getcomposer.org/):\n\n```bash\ncomposer require mgoigfer/laravel-spotify-wrapper\n```\n\nAdd the following lines to `config/services.php`:\n\n```php\n'spotify' =\u003e [\n    'client_id' =\u003e env('SPOTIFY_CLIENT_ID'),\n    'client_secret' =\u003e env('SPOTIFY_CLIENT_SECRET'),\n],\n```\n\n## Usage\n\n``` php\n$spotify = app()-\u003emake('SpotifyWrapper', [\n    'callback' =\u003e '/playlist',\n]);\n```\n\nAvailable options:\n\n* `callback`: _Optional_. The URI to redirect to after the user grants or denies permission. This URI needs to have been entered in the Redirect URI whitelist that you specified when you registered your application.\n* `scope`: _Optional_. A space-separated list of scopes. If no scopes are specified, authorization will be granted only to access publicly available information.\n* `show_dialog`: _Optional_. Whether or not to force the user to approve the app again if they’ve already done so. If `false` (default), a user who has already approved the application may be automatically redirected to the URI specified by redirect_uri. If `true`, the user will not be automatically redirected and will have to approve the app again.\n\n### Method Reference\n\nThese are the available methods:\n\n#### requestAccessToken\n\n```php\nSpotifyWrapper\\SpotifyWrapper::requestAccessToken()\n```\n\nRequest an access token.\n\nFirst of all, the user will be redirected to Spotify to approve the app. Then, the user is redirected back with an authorization code, in which we request an access token.\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Credits\n\n- [Mikel Goig](https://github.com/mgoigfer)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikelgoig%2Flaravel-spotify-wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikelgoig%2Flaravel-spotify-wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikelgoig%2Flaravel-spotify-wrapper/lists"}