PHP code example of akashrchandran / spotify-lyrics-api
1. Go to this page and download the library: Download akashrchandran/spotify-lyrics-api 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/ */
akashrchandran / spotify-lyrics-api example snippets
tify = new SpotifyLyricsApi\Spotify("SP_DC here");
$spotify->checkTokenExpire();
$reponse = $spotify -> getLyrics(track_id: "1418IuVKQPTYqt7QNJ9RXN");
php -S localhost:8000 api/index.php