PHPackages                             cwp/cwp-core - 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. cwp/cwp-core

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

cwp/cwp-core
============

CWP basic compatibility module. Use for migrations.

3.0.2(2y ago)3241.0k↑133.3%12[5 issues](https://github.com/silverstripe/cwp-core/issues)[1 PRs](https://github.com/silverstripe/cwp-core/pulls)5BSD-3-ClauseJavaScriptPHP ^8.1CI failing

Since Nov 7Pushed 1y ago10 watchersCompare

[ Source](https://github.com/silverstripe/cwp-core)[ Packagist](https://packagist.org/packages/cwp/cwp-core)[ RSS](/packages/cwp-cwp-core/feed)WikiDiscussions 3 Synced 3w ago

READMEChangelog (10)Dependencies (7)Versions (135)Used By (5)

CWP Core Module
===============

[](#cwp-core-module)

[![CI](https://github.com/silverstripe/cwp-core/actions/workflows/ci.yml/badge.svg)](https://github.com/silverstripe/cwp-core/actions/workflows/ci.yml)

About this module
-----------------

[](#about-this-module)

This module includes core configuration that integrates a Silverstripe CMS project with the underlying infrastructure of Silverstripe Cloud Platform CCL (formally Revera). Most NZ public sector projects will have this module included after installing the [silverstripe/recipe-ccl recipe module](https://github.com/silverstripe/recipe-ccl).

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

[](#installation)

```
composer require cwp/cwp-core
```

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

[](#configuration)

There are some settings that can be modified in this module, depending on requirements. These are listed below.

### XSS Protection

[](#xss-protection)

By default, sites using this module instruct newer browsers to protect against cross-site scripting (XSS) attacks. This is done using an HTTP header (X-XSS-Protection). More information on this header can be found on the [Mozilla Developer Network](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection) site. To disable this feature, add the following to your YML configuration:

```
CWP\Core\Control\InitialisationMiddleware:
  xss_protection_enabled: false
```

### Egress Proxy settings

[](#egress-proxy-settings)

An egress proxy is enabled for all external requests made by Silverstripe CMS sites running on Silverstripe Cloud CCL. This means that by default, all HTTP requests made using `curl` or PHP's stream functions are routed via a proxy. In some cases this may not be desired (e.g. if you wish to communicate with localhost). By default, there are two exceptions to this proxy: `services.cwp.govt.nz` and `localhost`. These cover all standard platform use cases (e.g. searching via Solr).

You can disable the egress proxy entirely by adding the following YML configuration:

```
CWP\Core\Control\InitialisationMiddleware:
  egress_proxy_default_enabled: false
```

You can also add to the list of domains to disable the proxy by adding the following YML configuration:

```
CWP\Core\Control\InitialisationMiddleware:
  egress_proxy_exclude_domains:
    - example.com
```

Contributing
------------

[](#contributing)

### Translations

[](#translations)

Translations of the natural language strings are managed through a third party translation interface, transifex.com. Newly added strings will be periodically uploaded there for translation, and any new translations will be merged back to the project source code.

Please use  to contribute translations, rather than sending pull requests with YAML files.

###  Health Score

47

—

FairBetter than 93% of packages

Maintenance11

Infrequent updates — may be unmaintained

Popularity40

Moderate usage in the ecosystem

Community37

Small or concentrated contributor base

Maturity90

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~31 days

Recently: every ~53 days

Total

132

Last Release

523d ago

Major Versions

1.9.4 → 2.4.0-rc12019-08-20

2.11.x-dev → 3.0.0-beta12023-01-25

2.12.0-rc1 → 3.0.0-rc12023-04-04

2.12.1 → 3.0.12023-08-29

2.x-dev → 3.x-dev2025-01-16

PHP version history (3 changes)2.4.0-rc1PHP &gt;=7.1.0

2.9.0PHP ^7.3 || ^8.0

3.0.0-beta1PHP ^8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/654636?v=4)[Aaron Carlino](/maintainers/unclecheese)[@unclecheese](https://github.com/unclecheese)

![](https://www.gravatar.com/avatar/b0cba8b534e20e6ab4fff555a97b237a18436ebca1446fc0b29c8a8b504038b9?d=identicon)[GuySartorelli](/maintainers/GuySartorelli)

![](https://avatars.githubusercontent.com/u/111025?v=4)[Ingo Schommer](/maintainers/chillu)[@chillu](https://github.com/chillu)

![](https://www.gravatar.com/avatar/a25bc04c5720a36869d5a39c6449dde7eb43e19b7c8e666d5f632d6a9ab440b1?d=identicon)[emteknetnz](/maintainers/emteknetnz)

![](https://www.gravatar.com/avatar/afbb3dcc9ef29c1a6eedd6addcae5fce9ab1271915a85a4c349301b71237368d?d=identicon)[silverstripe-machine01](/maintainers/silverstripe-machine01)

![](https://www.gravatar.com/avatar/be6648e60fbab6f70bfc34dd8c14259562d28a47510a934ea9c01fe98633f3c2?d=identicon)[sminnee](/maintainers/sminnee)

![](https://avatars.githubusercontent.com/u/1168676?v=4)[Maxime Rainville](/maintainers/maxime-rainville)[@maxime-rainville](https://github.com/maxime-rainville)

---

Top Contributors

[![robbieaverill](https://avatars.githubusercontent.com/u/5170590?v=4)](https://github.com/robbieaverill "robbieaverill (149 commits)")[![emteknetnz](https://avatars.githubusercontent.com/u/4809037?v=4)](https://github.com/emteknetnz "emteknetnz (47 commits)")[![mateusz](https://avatars.githubusercontent.com/u/118653?v=4)](https://github.com/mateusz "mateusz (31 commits)")[![GuySartorelli](https://avatars.githubusercontent.com/u/36352093?v=4)](https://github.com/GuySartorelli "GuySartorelli (28 commits)")[![NightJar](https://avatars.githubusercontent.com/u/778003?v=4)](https://github.com/NightJar "NightJar (17 commits)")[![ScopeyNZ](https://avatars.githubusercontent.com/u/3260989?v=4)](https://github.com/ScopeyNZ "ScopeyNZ (11 commits)")[![chillu](https://avatars.githubusercontent.com/u/111025?v=4)](https://github.com/chillu "chillu (9 commits)")[![ichaber](https://avatars.githubusercontent.com/u/929858?v=4)](https://github.com/ichaber "ichaber (5 commits)")[![kmayo-ss](https://avatars.githubusercontent.com/u/1711912?v=4)](https://github.com/kmayo-ss "kmayo-ss (4 commits)")[![sabina-talipova](https://avatars.githubusercontent.com/u/87288324?v=4)](https://github.com/sabina-talipova "sabina-talipova (4 commits)")[![raissanorth](https://avatars.githubusercontent.com/u/14869519?v=4)](https://github.com/raissanorth "raissanorth (3 commits)")[![assertchris](https://avatars.githubusercontent.com/u/200609?v=4)](https://github.com/assertchris "assertchris (3 commits)")[![dnsl48](https://avatars.githubusercontent.com/u/9313746?v=4)](https://github.com/dnsl48 "dnsl48 (3 commits)")[![bergice](https://avatars.githubusercontent.com/u/541886?v=4)](https://github.com/bergice "bergice (2 commits)")[![sachajudd](https://avatars.githubusercontent.com/u/24258161?v=4)](https://github.com/sachajudd "sachajudd (2 commits)")[![dhensby](https://avatars.githubusercontent.com/u/563596?v=4)](https://github.com/dhensby "dhensby (1 commits)")[![brettt89](https://avatars.githubusercontent.com/u/4122344?v=4)](https://github.com/brettt89 "brettt89 (1 commits)")[![phptek](https://avatars.githubusercontent.com/u/478440?v=4)](https://github.com/phptek "phptek (1 commits)")[![mandrew](https://avatars.githubusercontent.com/u/343938?v=4)](https://github.com/mandrew "mandrew (1 commits)")[![mark-a-j-adriano](https://avatars.githubusercontent.com/u/11882563?v=4)](https://github.com/mark-a-j-adriano "mark-a-j-adriano (1 commits)")

---

Tags

cwphacktoberfestsilverstripesilverstripecwp

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/cwp-cwp-core/health.svg)

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

###  Alternatives

[silverstripe/cms

The SilverStripe Content Management System

5163.5M1.3k](/packages/silverstripe-cms)[symbiote/silverstripe-advancedworkflow

Adds configurable workflow support to the CMS, with a GUI for creating custom workflow definitions.

46299.9k9](/packages/symbiote-silverstripe-advancedworkflow)[silverstripe/sharedraftcontent

Share draft page content with non-CMS users

21419.6k11](/packages/silverstripe-sharedraftcontent)[silverstripe/hybridsessions

Cookie/DB session support for SilverStripe

17505.8k4](/packages/silverstripe-hybridsessions)[silverstripe/html5

HTML5 support for SilverStripe

14232.8k4](/packages/silverstripe-html5)

PHPackages © 2026

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