PHPackages                             e2d2-dev/modify-classes - 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. e2d2-dev/modify-classes

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

e2d2-dev/modify-classes
=======================

v1.0.0(5mo ago)01MITPHP

Since Jan 20Pushed 5mo agoCompare

[ Source](https://github.com/e2d2-dev/modify-classes)[ Packagist](https://packagist.org/packages/e2d2-dev/modify-classes)[ RSS](/packages/e2d2-dev-modify-classes/feed)WikiDiscussions main Synced 3w ago

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

Introduction
============

[](#introduction)

Adds and removes traits &amp; interfaces from classes in one command.

Installation
============

[](#installation)

Install package.

```
composer require e2d2-dev/modify-classes
```

Usage
=====

[](#usage)

It automatically detects if it is an interface or a trait. You can add or remove one or many in one step. Don't forget to use save.

Add
---

[](#add)

```
use Betta\ModifyClasses\Modifier;

// add one
Modifier::make(Your::class)->add(YourInterface::class)->save()

// add many
Modifier::make(Your::class)->addMany([
     YourInterface::class,
     YourSecondIntfaceOrTrait::class,
])->save()
```

Remove
------

[](#remove)

```
use Betta\ModifyClasses\Modifier;

// add one
Modifier::make(Your::class)->remove(YourInterface::class)->save()

// add many
Modifier::make(Your::class)->removeMany([
     YourInterface::class,
     YourSecondIntfaceOrTrait::class,
])->save()
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance73

Regular maintenance activity

Popularity1

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

153d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/66956867?v=4)[ed](/maintainers/e2d2-dev)[@e2d2-dev](https://github.com/e2d2-dev)

---

Top Contributors

[![e2d2-dev](https://avatars.githubusercontent.com/u/66956867?v=4)](https://github.com/e2d2-dev "e2d2-dev (1 commits)")

### Embed Badge

![Health badge](/badges/e2d2-dev-modify-classes/health.svg)

```
[![Health](https://phpackages.com/badges/e2d2-dev-modify-classes/health.svg)](https://phpackages.com/packages/e2d2-dev-modify-classes)
```

###  Alternatives

[asika/autolink

Auto convert url to link anchor.

33481.2k2](/packages/asika-autolink)[pantheon-systems/example-wordpress-composer

994.2k](/packages/pantheon-systems-example-wordpress-composer)[kornrunner/ethereum-token

PHP Ethereum Token Utils

1413.2k1](/packages/kornrunner-ethereum-token)

PHPackages © 2026

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