https://github.com/inquid/yii2-spotify
spotify, utilities for yii2 framework
https://github.com/inquid/yii2-spotify
spotify widget yii2 yii2-extension
Last synced: 3 months ago
JSON representation
spotify, utilities for yii2 framework
- Host: GitHub
- URL: https://github.com/inquid/yii2-spotify
- Owner: inquid
- License: mit
- Created: 2017-06-15T19:35:31.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-14T07:24:03.000Z (almost 7 years ago)
- Last Synced: 2025-03-03T07:18:02.641Z (3 months ago)
- Topics: spotify, widget, yii2, yii2-extension
- Language: PHP
- Size: 5.86 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&[email protected]&item_name=Yii2+extensions+support&item_number=22+Campaign&amount=5%2e00¤cy_code=USD)
yii2 Inquid Spotify
===================
spotify utilities for yii2 frameworkInstallation
------------The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
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 :
```php
= \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/
SUPPORT
-----
[](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&[email protected]&item_name=Yii2+extensions+support&item_number=22+Campaign&amount=5%2e00¤cy_code=USD)