PHPackages                             innoweb/silverstripe-requirements-resolver - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. innoweb/silverstripe-requirements-resolver

ActiveSilverstripe-vendormodule[Utility &amp; Helpers](/categories/utility)

innoweb/silverstripe-requirements-resolver
==========================================

Helper module to resolve the path to global requirements like jQuery and the like.

3.0.0(7mo ago)01.6k1BSD-3-ClausePHP

Since Oct 27Pushed 7mo ago2 watchersCompare

[ Source](https://github.com/xini/silverstripe-requirements-resolver)[ Packagist](https://packagist.org/packages/innoweb/silverstripe-requirements-resolver)[ RSS](/packages/innoweb-silverstripe-requirements-resolver/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (14)Used By (0)

SilverStripe Requirements Resolver
==================================

[](#silverstripe-requirements-resolver)

Overview
--------

[](#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
------------

[](#requirements)

SilverStripe CMS 6, see [composer.json](composer.json)

Installation
------------

[](#installation)

Install the module using composer:

```
composer require innoweb/silverstripe-requirements-resolver dev-master

```

Then run dev/build.

Usage
-----

[](#usage)

### In PHP

[](#in-php)

```
Requirements::javascript(
    RequirementsResolver::get('jquery')
);

```

### In template

[](#in-template)

```

```

Configuration
-------------

[](#configuration)

The following requirements are pre-configured in the module's config:

```
jquery: 'https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js'
'jquery-validate': 'https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.21.0/jquery.validate.min.js'
'jqueryui-js': 'https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.14.1/jquery-ui.min.js'

```

Additional requirements can be added the the module's config:

```
Innoweb\RequirementsResolver\RequirementsResolver:
  requirements:
    '{key}': '{URL}'

```

Once configured, the key can be used to load the Requirements path.

License
-------

[](#license)

BSD 3-Clause License, see [License](license.md)

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance62

Regular maintenance activity

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 93.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~210 days

Recently: every ~197 days

Total

13

Last Release

232d ago

Major Versions

1.2.3 → 2.0.02023-03-16

1.x-dev → 2.0.22024-01-04

2.x-dev → 3.0.02025-09-22

### Community

Maintainers

![](https://www.gravatar.com/avatar/0d2e71d7787401a7bd4916062346163897f89f455d650ab32b5d60cd14825ad3?d=identicon)[xini](/maintainers/xini)

---

Top Contributors

[![xini](https://avatars.githubusercontent.com/u/1152403?v=4)](https://github.com/xini "xini (14 commits)")[![dizzystuff](https://avatars.githubusercontent.com/u/576903?v=4)](https://github.com/dizzystuff "dizzystuff (1 commits)")

---

Tags

silverstriperesolvejqueryglobalrequirements

### Embed Badge

![Health badge](/badges/innoweb-silverstripe-requirements-resolver/health.svg)

```
[![Health](https://phpackages.com/badges/innoweb-silverstripe-requirements-resolver/health.svg)](https://phpackages.com/packages/innoweb-silverstripe-requirements-resolver)
```

###  Alternatives

[dorsetdigital/silverstripe-enhanced-requirements

Enhanced requirements for Silverstripe

117.8k4](/packages/dorsetdigital-silverstripe-enhanced-requirements)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
