PHPackages                             tsquare/classoverrider - 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. tsquare/classoverrider

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

tsquare/classoverrider
======================

Override PHP Classes using a path outside of your project, to make customizations that might otherwise be overwritten on an update.

1.0.0(6y ago)07MITPHPPHP ^7.1

Since Oct 8Pushed 6y ago1 watchersCompare

[ Source](https://github.com/Tsquare17/ClassOverrider)[ Packagist](https://packagist.org/packages/tsquare/classoverrider)[ RSS](/packages/tsquare-classoverrider/feed)WikiDiscussions master Synced today

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Tsquare\\ClassOverrider
=======================

[](#tsquareclassoverrider)

Allows the customization of code that would otherwise be unable to be modified without being possibly overwritten.

Specify an overrides directory outside of the projects codebase, where customized classes can be used instead.

The directory structure in the overrides path should emulate the overridden namespace, beyond the base namespace specified.

Example:

```
define('CLASSOVERRIDER_PATH', 'overrides_dir');
define('CLASSOVERRIDER_NS', 'Tsquare\\Overriding_Namespace');
define('CLASSOVERRIDER_BASE_NS', 'Tsquare\\Overridden_Namespace');

$foo = new MaybeOverride(Sample::class, 'arg1', 'arg2');
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 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

2407d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

phpwordpresswpclassesoverride

### Embed Badge

![Health badge](/badges/tsquare-classoverrider/health.svg)

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

###  Alternatives

[gehrisandro/tailwind-merge-php

TailwindMerge for PHP merges multiple Tailwind CSS classes by automatically resolving conflicts between them

1391.5M9](/packages/gehrisandro-tailwind-merge-php)

PHPackages © 2026

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