Download the PHP package letterncms/spotify without Composer

On this page you can find all versions of the php package letterncms/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

Spotify

Adds a Spotify block: a song, album, playlist, artist, podcast episode or show with Spotify's own player. Paste its link from Spotify's Share menu, as open.spotify.com/… or a spotify: URI. One thing to play gets the compact player and a list gets the tall one, or choose a size.

The site asks Spotify about each link once, not the visitor: its title, which screen readers read when the block has none, and whether it can be shown. Something private or gone shows nothing on the page, and the block says why in the editor, as it does for a short spotify.link link or a link to a library.

With Load on Click, the page shows a card in the player's place: the cover, on the colour it is mostly made of, the title and a link to it on Spotify. Spotify's player loads in its place, at the same height, when a visitor presses it. The site copies the cover into public/_cms/spotify/ when it asks Spotify about the link, so until a visitor presses the card nothing on the page contacts Spotify. It is off by default, since Spotify's player can't start playing by itself and visitors would press twice. The editor always shows the card: it runs no scripts, so Spotify's player could only show half of itself there.

Install

From Plugins → Store in the admin, or:

Settings

The plugin has no settings of its own. The block has these:

Setting What it does
Spotify Link (url) The link or URI.
Title for Screen Readers (title) Read out for the player. Empty: its title on Spotify.
Size (size) auto (152 pixels for a song or an episode, 352 for the rest), slim (80, one row), compact (152) or tall (352).
Colors (theme) auto, Spotify's colors from the artwork, or dark. Spotify's player has no light version.
Load on Click (load_on_click) Off by default. On, a card first and the player on a click.

In Block Markdown:

With the site's content security policy on, the player's frame from open.spotify.com is allowed.

Abilities

None of its own. Agents add the block like any other, through the blocks/* and entries/* abilities; blocks/types lists it with an example.

Hooks

It adds the player's host to the core's site.policy filter, and adds no hooks of its own.


This repository is published from letterncms/plugins-public. Open issues and pull requests there.


All versions of spotify with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
letterncms/cms Version >=0.36 <1
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 letterncms/spotify contains the following files

Loading the files please wait ...