inquid/yii2-spotify

spotify, utilities for yii2 framework

Installs: 33

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 3

Forks: 0

Open Issues: 0

Type:yii2-extension

v0.1 2018-02-21 06:12 UTC

This package is auto-updated.

Last update: 2024-10-29 04:58:54 UTC


README

Yii Framework

Donate

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

Example

Ximena

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

paypal