PHP code example of mgoigfer / nova-spotify-auth-tool
1. Go to this page and download the library: Download mgoigfer/nova-spotify-auth-tool library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mgoigfer / nova-spotify-auth-tool example snippets
public function tools()
{
return [
new \Mgoigfer\SpotifyAuthTool\SpotifyAuthTool,
];
}
use Mgoigfer\SpotifyAuthTool\Facades\Spotify;
$userId = Spotify::userId();
$refreshToken = Spotify::refreshToken();
bash
php artisan vendor:publish --provider="Mgoigfer\SpotifyAuthTool\SpotifyAuthToolServiceProvider"
php artisan migrate