Download the PHP package shatodj/bolt-soundcloud-slug-resolver without Composer
On this page you can find all versions of the php package shatodj/bolt-soundcloud-slug-resolver. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package bolt-soundcloud-slug-resolver
BOLT CMS Soundcloud Slug Resolver Extension.
The extension provides Twig Template Runtime function that will resolve Soundcloud Slug and inject data to the TWIG template.
Disclaimer
Before you jump into using this extension on some of your awesome projects, mind that you have to register your Soundcloud App first to obtain client credentials. However, Soundcloud stopped providing new app registrations due to a high amount of requests and no one knows when they'll be back again with some other innovative way.
You can still browse Google for some existing credentials or try to extract CLIENT_ID from the Soundcloud website and browser console (F12) traffic view.
Installation
-
From Bolt Market Place
- Find
shatodj/bolt-soundcloud-slug-resolverin Bolt extensions sections
- Find
-
Using composer
- Go to Bolt project
/extensionsfolder and run
- Go to Bolt project
-
Brute force (if market doesn't work) :)
-
Add new
bolt-soundcloud-slug-resolverrepository entry to/extensions/composer.jsonlike this eg.: -
Change
minimum-stabilitytodevinextensions/package.json - Add new require entry to
extensions/package.jsoneg.:
-
Usage
Use the new twig function soundcloud_resolve('/your_dj_slug/your_track') to get data from Soundcloud.
The function returns this data object:
Feel free to experiment with other standard Soundcloud slugs. For more info check /resolve resource.
Configuration
Be sure to set proper settings for the extension.
Licence
MIT