PHPackages                             rebelcode/composer-cleanup-plugin - 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. rebelcode/composer-cleanup-plugin

ActiveComposer-plugin[Utility &amp; Helpers](/categories/utility)

rebelcode/composer-cleanup-plugin
=================================

A composer cleanup plugin, to remove tests and documentation to save space

v0.2(5y ago)02.2k1MITPHP

Since Dec 5Pushed 5y ago2 watchersCompare

[ Source](https://github.com/RebelCode/composer-cleanup-plugin)[ Packagist](https://packagist.org/packages/rebelcode/composer-cleanup-plugin)[ RSS](/packages/rebelcode-composer-cleanup-plugin/feed)WikiDiscussions master Synced 3w ago

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

Composer Cleanup Plugin
=======================

[](#composer-cleanup-plugin)

[![Latest Stable Version](https://camo.githubusercontent.com/1d8012f09e69dc0e212216d56cdd8c15eb8f392ab8e67ae2ce212f2855e9088f/68747470733a2f2f706f7365722e707567782e6f72672f726562656c636f64652f636f6d706f7365722d636c65616e75702d706c7567696e2f76657273696f6e)](https://packagist.org/packages/rebelcode/rcmod-eddbk-rest-api)

Remove tests &amp; documentation from the vendor dir. Based on [laravel-vendor-cleanup](https://github.com/barryvdh/laravel-vendor-cleanup) but implemented as a Composer Plugin instead of a Laravel command.

Usually disk size shouldn't be a problem, but when you have to use FTP to deploy or have very limited disk space, you can use this package to cut down the vendor directory by deleting files that aren't used in production (tests/docs etc).

> **Note:** This package is still experimental, usage in production is not recommended. In normal circumstances, you shouldn't care about disk space! Try deploying with SSH/Git instead.

Install
-------

[](#install)

Require this package in your composer.json:

```
  "rebelcode/composer-cleanup-plugin": "^0.1"

```

Adding rules
------------

[](#adding-rules)

Please submit a PR to [src/CleanupRules.php](https://github.com/barryvdh/composer-cleanup-plugin/blob/master/src/CleanupRules.php) to add more rules for packages. Make sure you test them first, sometimes tests dirs are classmapped and will error when deleted.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 62.2% 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 ~796 days

Total

2

Last Release

1960d ago

### Community

Maintainers

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

---

Top Contributors

[![barryvdh](https://avatars.githubusercontent.com/u/973269?v=4)](https://github.com/barryvdh "barryvdh (28 commits)")[![mecha](https://avatars.githubusercontent.com/u/5425482?v=4)](https://github.com/mecha "mecha (8 commits)")[![mmodler](https://avatars.githubusercontent.com/u/1906217?v=4)](https://github.com/mmodler "mmodler (8 commits)")[![phy25](https://avatars.githubusercontent.com/u/331403?v=4)](https://github.com/phy25 "phy25 (1 commits)")

### Embed Badge

![Health badge](/badges/rebelcode-composer-cleanup-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/rebelcode-composer-cleanup-plugin/health.svg)](https://phpackages.com/packages/rebelcode-composer-cleanup-plugin)
```

###  Alternatives

[symfony/runtime

Enables decoupling PHP applications from global state

74694.9M938](/packages/symfony-runtime)[ergebnis/composer-normalize

Provides a composer plugin for normalizing composer.json.

1.1k40.0M2.6k](/packages/ergebnis-composer-normalize)[drupal/core-composer-scaffold

A flexible Composer project scaffold builder.

5344.1M526](/packages/drupal-core-composer-scaffold)[drupal/core-project-message

Adds a message after Composer installation.

2124.0M193](/packages/drupal-core-project-message)[sandersander/composer-link

Adds ability to link local packages for development with composer

94441.4k](/packages/sandersander-composer-link)[phpro/grumphp-shim

GrumPHP Phar distribution

284.6M333](/packages/phpro-grumphp-shim)

PHPackages © 2026

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