PHPackages                             archiprocode/silverstripe-six-polyfill - 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. [Database &amp; ORM](/categories/database)
4. /
5. archiprocode/silverstripe-six-polyfill

ActiveSilverstripe-vendormodule[Database &amp; ORM](/categories/database)

archiprocode/silverstripe-six-polyfill
======================================

Silverstripe CMS 6 namespace polyfill for CMS 5. Provides CMS 6 class namespaces in CMS 5 to allow early migration.

0.0.0(7mo ago)02BSD-3-ClausePHPPHP ^8.1

Since Sep 17Pushed 7mo agoCompare

[ Source](https://github.com/maxime-rainville/silverstripe-six-polyfill)[ Packagist](https://packagist.org/packages/archiprocode/silverstripe-six-polyfill)[ RSS](/packages/archiprocode-silverstripe-six-polyfill/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (6)Versions (2)Used By (0)

Silverstripe CMS 6 polyfill for CMS 5
=====================================

[](#silverstripe-cms-6-polyfill-for-cms-5)

Silverstripe CMS 6 moved a bunch of classes around. e.g.: `SilverStripe\ORM\ArrayList` got moved to `SilverStripe\Model\List\ArrayList`.

So in CMS 5, many classes will now throw deprecation warning about the class being moved to a different namespace. However, since these new classes don't exist yet, you can't fix the deprecation warning without upgrading to CMS 6.

```
public function __construct(array $items = [])
{
    Deprecation::withSuppressedNotice(function () {
        Deprecation::notice('5.4.0', 'Will be renamed to SilverStripe\Model\List\ArrayList', Deprecation::SCOPE_CLASS);
    });

    $this->items = array_values($items ?? []);
    parent::__construct();
}
```

This packages ships copies of the current CMS 5 classes but moved to their CMS 6 namespace. It removes the deprecation warning from the constructor, that way you can adopt the new namespace in CMS 5.

Using this module
-----------------

[](#using-this-module)

1. Install the module to your project.

```
composer run archiprocode/silverstripe-six-poylfill
```

2. Update references to deprecated classes to their CMS 6 equivalent to suppress the "Will be renamed" deprecation warning.

Note that this only addressed the "Will be renamed" deprecation. Other APIs on these classes may be derpcetade for other reasons.

How this module is generated
----------------------------

[](#how-this-module-is-generated)

This modules aims to be maintanable with the latest silverstripe CMS 5 release. Sa a process has been put in place so it can easily refresh itself as needed.

- The file cms6-equivalence.yml contain a list of CMS5 class name and what their equivalence in CMS 6 is.
- the refresh.php script
    - checkouts the latest stable tags of `silverstripe/framework` 5.
    - copy each file reference in cms6-equivalence.yml to its new spot within this module.
    - use phpstan to remove the deprecation warning from the class contsructor while preserving other deprocation warnings within the class.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance62

Regular maintenance activity

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

236d ago

### Community

Maintainers

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

---

Top Contributors

[![maxime-rainville](https://avatars.githubusercontent.com/u/1168676?v=4)](https://github.com/maxime-rainville "maxime-rainville (3 commits)")

---

Tags

polyfillmigrationsilverstripecmsnamespacecms5cms6

###  Code Quality

TestsPHPUnit

Static AnalysisRector

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/archiprocode-silverstripe-six-polyfill/health.svg)

```
[![Health](https://phpackages.com/badges/archiprocode-silverstripe-six-polyfill/health.svg)](https://phpackages.com/packages/archiprocode-silverstripe-six-polyfill)
```

###  Alternatives

[dgrigg/craft-migration-assistant

Create content migrations at the click of a mouse. Keep environments in sync with ease.

2782.3k](/packages/dgrigg-craft-migration-assistant)

PHPackages © 2026

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