diff --git a/README.md b/README.md index 8a09fe4..a2423f9 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,6 @@ A Rest API for fetching lyrics from Spotify which is powered by Musixmatch. Comm ``` composer require akashrchandran/spotify-lyrics-api ``` - # Fetching Lyrics @@ -178,6 +177,25 @@ error response: } ``` +# Using as package +> Install using `composer require akashrchandran/spotify-lyrics-api`. + +Include the package's autoloader file in your PHP code and call class `Spotify()`. + +```PHP +checkTokenExpire(); +$reponse = $spotify -> getLyrics(track_id: "1418IuVKQPTYqt7QNJ9RXN"); +?> +``` + + +![image](https://user-images.githubusercontent.com/78685510/236701387-23165a0e-1c94-474d-aea1-41d8b8464f66.png) + + # Deployment > Want to host your own version of this API, But first you need SP_DC cookie from spotify