Download the PHP package soda-framework/spotify without Composer

On this page you can find all versions of the php package soda-framework/spotify. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package spotify

Soda Spotify

A sweet spotify platform for Made in Katana

Installation

1) Firstly follow the instructions to install Soda CMS at: https://github.com/soda-framework/cms

2) Install Soda Spotify

3) Install these packages using NPM. These are needed for compiling the Vue Components in this package.

4) Integrate Soda Spotify into laravel by adding Soda\Spotify\Providers\SpotifyServiceProvider::class in the providers array in /config/app.php

5) Run the database migrations php artisan migrate to generate the necessary tables.

6) In the CMS, go to the Spotify > Settings tab and specify the Package and Action that each created playlist should use. You can also specify the Playlist Title and Playlist Image (optional) for a playlist created on a user account.

Usage

Saving a Playlist

Include this file to create a link that will create a playlist on a users account.

Or, you can pass in custom text/views/html to be displayed.

You can specify the Title and Image the created playlist will have by going to the Spotify > Settings tab and in the cms and editing the Playlist Title and Playlist Image (optional).

This action will send them to Spotify and log them in. They will be sent back to the /playlist/ID page with

present.

If this parameter is present AND the playlist has not already been listed as added (session), then it will add the playlist to the users account before sending them back to the playlist on the site.

Tracks

You need to include the Tracks component in your Javascript using Vue. e.g.

Displaying the Player Interface

Or, you can pass in custom text act act as a title. e.g.

Routes

Save Playlist

Get Playlist Tracks

Response Screen Shot 2017-02-01 at 11.55.19 am.png

Storing Track Data

Tracks need to be stored in the database in the JSON with the structure:

There is a function to convert an array of Spotify Created tracks JSON to this format

Creating a Playlist

$seeds is an array of seeds as defined in https://developer.spotify.com/web-api/get-recommendations/.

e.g.

Important: You MUST have any one of seed_genres, seed_tracks or seed_artists.


All versions of spotify with dependencies

PHP Build Version
Package Version
Requires php Version ^7.0
soda-framework/cms Version >=0.7
laravel/framework Version ~5.3
ext-curl Version *
doctrine/dbal Version ^2.5
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package soda-framework/spotify contains the following files

Loading the files please wait ....