Quantcast
Channel: Live News for Yii Framework
Viewing all articles
Browse latest Browse all 3375

[extension] inquid/yii2-spotify

$
0
0

Yii Framework

Donate

yii2 Inquid Spotify

  1. Installation
  2. Usage
  3. Example
  4. SUPPORT

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


Viewing all articles
Browse latest Browse all 3375

Trending Articles