inquid/yii2-spotify spotify, utilities for yii2 framework

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

0 0
1 follower
33 downloads
Yii Version: 2.0
License: GPL-3.0+
Category: Web Service
Developed by: Luis Armando
Created on: Mar 29, 2018
Last updated: (not set)
Packagist Profile
Github Repository

Related Extensions