PHPackages                             stevie-mayhew/trait-loader - 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. stevie-mayhew/trait-loader

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

stevie-mayhew/trait-loader
==========================

Adds trait autoloading support to SilverStripe

1.0.5(9y ago)266.0k↓34.4%6[1 PRs](https://github.com/stevie-mayhew/trait-loader/pulls)2BSD-3-ClausePHPPHP &gt;=5.4

Since Aug 3Pushed 9y ago1 watchersCompare

[ Source](https://github.com/stevie-mayhew/trait-loader)[ Packagist](https://packagist.org/packages/stevie-mayhew/trait-loader)[ Docs](https://github.com/stevie-mayhew/trait-loader)[ RSS](/packages/stevie-mayhew-trait-loader/feed)WikiDiscussions master Synced 1mo ago

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

Trait Loader for SilverStripe
=============================

[](#trait-loader-for-silverstripe)

This module adds in support for autoloading [traits](http://php.net/trait) to SilverStripe.

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

[](#requirements)

- PHP 5.4 or newer
- SilverStripe 3.1 or newer

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

[](#installation)

### Composer

[](#composer)

- `composer require stevie-mayhew/trait-loader`
- Visit `http://your-site.com/?flush=1`

Manual installation
-------------------

[](#manual-installation)

- Download an archive and extract into a folder named `trait-loader` in your site's root folder
- Visit `http://your-site.com/?flush=1`

License
-------

[](#license)

This module is licensed under a BSD 3 clause license. See the LICENSE file for the actual license.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 90% 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 ~119 days

Total

4

Last Release

3583d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a499234983660ff4b31982de5e17e147544b717227fc4f7245070462fd03cbca?d=identicon)[stevie-mayhew](/maintainers/stevie-mayhew)

---

Top Contributors

[![stevie-mayhew](https://avatars.githubusercontent.com/u/1953220?v=4)](https://github.com/stevie-mayhew "stevie-mayhew (9 commits)")[![micmania1](https://avatars.githubusercontent.com/u/881537?v=4)](https://github.com/micmania1 "micmania1 (1 commits)")

---

Tags

autoloadsilverstripetraits

### Embed Badge

![Health badge](/badges/stevie-mayhew-trait-loader/health.svg)

```
[![Health](https://phpackages.com/badges/stevie-mayhew-trait-loader/health.svg)](https://phpackages.com/packages/stevie-mayhew-trait-loader)
```

###  Alternatives

[silverstripe/multi-domain

Allows multiple domains to access one CMS instance, mapping them to different sections of the hierarchy

141.6k](/packages/silverstripe-multi-domain)

PHPackages © 2026

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