PHPackages                             weboftalent/clearrequirements - 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. weboftalent/clearrequirements

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

weboftalent/clearrequirements
=============================

Remove all requirements with a single template call and start template afresh

4.0.3(6y ago)1261[1 issues](https://github.com/gordonbanderson/clearrequirements/issues)BSD-3-ClausePHP

Since Jan 19Pushed 6y ago1 watchersCompare

[ Source](https://github.com/gordonbanderson/clearrequirements)[ Packagist](https://packagist.org/packages/weboftalent/clearrequirements)[ RSS](/packages/weboftalent-clearrequirements/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (2)Versions (9)Used By (0)

Clear Requirements
==================

[](#clear-requirements)

Maintainers
-----------

[](#maintainers)

- Gordon Anderson (Nickname: nontgor)

Introduction
------------

[](#introduction)

This module allows clearing of CSS and JS files from a template using a YML config file. Use this if you wish to manually combine and compress JS and CSS files.

Documentation
-------------

[](#documentation)

### YML File

[](#yml-file)

The YML config file, which can be named arbitrarily, simply consists of a list of JS and CSS files that are to be cleared. Note that a unique ID can also be provided, this is the only way to clear custom scripts.

```
---
Name: jakayanrides-clear-requirements
After: clear-requirements-extensions
---
WebOfTalent\ClearRequirements\RequirementsClearer:
  JavaScript:
    - framework/thirdparty/jquery/jquery.js
    - framework/thirdparty/jquery-validate/lib/jquery.form.js
    - framework/thirdparty/jquery-validate/jquery.validate.pack.js
    - comments/javascript/CommentsInterface.js
    - mappable/javascript/google/FullScreenControl.js
    - mappable/javascript/google/markerclusterer.js
    - mappable/javascript/google/maputil.js
  CSS:
    - foundationforms/css/foundationforms.css
```

### Executing Requirements Clearning

[](#executing-requirements-clearning)

Prior to including your JavaScript call this in your template:

```
$ClearCustomRequirements

```

### Clear All Requirements

[](#clear-all-requirements)

This does not use the above configuration file and simply removes all requirements. Note this includes custom scripts as well.

If this functionality is desired add this to your template prior to including JavaScript.

```
$ClearAllRequirements

```

Requirements
------------

[](#requirements)

- SilverStripe 3,4

Install
-------

[](#install)

### SS4

[](#ss4)

```
composer require 'weboftalent/clearrequirements'

```

### SS3

[](#ss3)

```
composer require 'weboftalent/clearrequirements:^1'

```

TODO
----

[](#todo)

- Tests

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~252 days

Recently: every ~294 days

Total

6

Last Release

2554d ago

Major Versions

1.0.1 → 4.0.02018-09-06

### Community

Maintainers

![](https://www.gravatar.com/avatar/9af58f7ff675f65dbd2f20d39d8b80ed671eb0fe376eb978e497934c175196fe?d=identicon)[weboftalent](/maintainers/weboftalent)

---

Top Contributors

[![gordonbanderson](https://avatars.githubusercontent.com/u/7060?v=4)](https://github.com/gordonbanderson "gordonbanderson (30 commits)")

---

Tags

javascriptcsssilverstripetemplatesrequirementsweboftalent

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/weboftalent-clearrequirements/health.svg)

```
[![Health](https://phpackages.com/badges/weboftalent-clearrequirements/health.svg)](https://phpackages.com/packages/weboftalent-clearrequirements)
```

###  Alternatives

[stolz/assets

An ultra-simple-to-use assets management library

289527.4k8](/packages/stolz-assets)[tatter/assets

Asset publishing and loading for CodeIgniter 4

4867.1k5](/packages/tatter-assets)[dotsunited/bundlefu

BundleFu is a PHP 5.3+ library which bundles multiple css/javascript files into a big package and sends it out at once

7028.8k3](/packages/dotsunited-bundlefu)[axllent/silverstripe-cms-tweaks

Several CMS usability improvements

1726.3k1](/packages/axllent-silverstripe-cms-tweaks)[nlac/nlsclientscript

Yii ClientScript extension for prevent reloading javascript and merging/minfying resources

208.4k](/packages/nlac-nlsclientscript)

PHPackages © 2026

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