Download the PHP package surface/commonmark-ext-spotify-iframe without Composer
On this page you can find all versions of the php package surface/commonmark-ext-spotify-iframe. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download surface/commonmark-ext-spotify-iframe
More information about surface/commonmark-ext-spotify-iframe
Files in surface/commonmark-ext-spotify-iframe
Package commonmark-ext-spotify-iframe
Short Description Extension for league/commonmark to replace Spotify link with an iframe.
License MIT
Homepage https://github.com/trovster/commonmark-ext-spotify-iframe
Informations about the package commonmark-ext-spotify-iframe
Spotify iframe extension
An extension for league/commonmark version 2 built using PHP 8.0. This replaces Spotify links with the embed iframe.
The extension supports for tracks, artists, albums and playlists using the embed URL format.
Initially based on the YouTube extension.
Installation
The project should be installed via Composer:
Usage
Configure your CommonMark Environment
and add the extension.
Sizes
Spotify provides two different sizes, large
and small
. By default the
extension provides the large
version. You can configure the option globally
using the size
option.
You can also configure the size option using a query parameter on the embed
URL. The supported sizes are large
, lg
, small
and sm
.
Testing
There are Unit and Integration tests for the project. These can be run using the following commands:
There are also scripts to run code sniffer, mess detector and static analysis:
Changelog
Please refer to the CHANGELOG for more information on what has changed recently.
License
This library is licensed under the MIT license. See the License File for more information.