yii2 Inquid Spotify ¶
spotify utilities for yii2 framework
Installation ¶
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist inquid/yii2-spotify "*"
or add
"inquid/yii2-spotify": "dev-master"
to the require section of your composer.json
file.
Usage ¶
Once the extension is installed, simply use it in your code by :
<?= \inquid\spotify\SpotifyWidget::widget(['song' => '/* paste here your spotify uri */']); ?>
Params available:
-song
-theme
-view
-width
-height
-frameBorder
-transparency
- Song params is required like the next example spotify:track:5O31BTWa4XNFtE3zVgeCoh
To copy the code in spotify:
Example ¶
Code:
<?= \inquid\spotify\SpotifyWidget::widget(['song' => 'spotify:track:2QB1chgLUjo4K5JwODVue1', 'height' => 400, 'width' => 400]); ?>
for more information check out the following link: https://developer.spotify.com/technologies/widgets/spotify-play-button/
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.