PHPackages                             pouler/spotify-login - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. pouler/spotify-login

ActiveLibrary[API Development](/categories/api)

pouler/spotify-login
====================

PHP Package for logging in to Spotify

0.3(3y ago)42.8k↑650%1[5 issues](https://github.com/PouleR/spotify-login/issues)1MITPHPPHP &gt;=8.1

Since Jan 11Pushed 3y ago1 watchersCompare

[ Source](https://github.com/PouleR/spotify-login)[ Packagist](https://packagist.org/packages/pouler/spotify-login)[ Docs](https://github.com/PouleR/spotify-login)[ RSS](/packages/pouler-spotify-login/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (6)Versions (5)Used By (1)

Spotify Login
=============

[](#spotify-login)

This is a PHP wrapper for a Spotify login.

Requirements
------------

[](#requirements)

- PHP &gt;=8.1

Installation
------------

[](#installation)

Install it using [Composer](https://getcomposer.org/):

```
composer require pouler/spotify-login
```

Compiling .proto files
----------------------

[](#compiling-proto-files)

- Originally taken from this repository:
- Make sure you have the protoc compiler installed
- The .proto files are used for generating the PHP classes

`protoc --php_out=./generated --proto_path=./proto \  proto/spotify/login5/v3/login5.proto \ proto/spotify/login5/v3/user_info.proto \ proto/spotify/login5/v3/client_info.proto \ proto/spotify/login5/v3/challenges/code.proto \ proto/spotify/login5/v3/challenges/hashcash.proto \ proto/spotify/login5/v3/credentials/credentials.proto \ proto/spotify/login5/v3/identifiers/identifiers.proto`

Example usage
-------------

[](#example-usage)

```
