Download the PHP package innoweb/silverstripe-requirements-resolver without Composer
On this page you can find all versions of the php package innoweb/silverstripe-requirements-resolver. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download innoweb/silverstripe-requirements-resolver
More information about innoweb/silverstripe-requirements-resolver
Files in innoweb/silverstripe-requirements-resolver
Package silverstripe-requirements-resolver
Short Description Helper module to resolve the path to global requirements like jQuery and the like.
License BSD-3-Clause
Informations about the package silverstripe-requirements-resolver
SilverStripe Requirements Resolver
Overview
Helper module to resolve the path to global requirements like jQuery, and the like.
This was built for Silverstripe 4 because the local jQuery and jQuery validate versions in framework were outdated and we needed a way to override those with a newer/more secure version.
It helps making sure that only one version of a certain library is included for a site.
It also makes sure that when a JS requirement is called twice, once with defer/async and once without, the requirement is included without async/defer to make sure all js code works.
Requirements
SilverStripe CMS 5, see composer.json
Note: this version is compatible with Silverstripe 5. For Silverstripe 4, please see the 1 release line.
Installation
Install the module using composer:
Then run dev/build.
Usage
In PHP
In template
Configuration
The following requirements are pre-configured in the module's config:
Additional requirements can be added the the module's config:
Once configured, the key can be used to load the Requirements path.
License
BSD 3-Clause License, see License