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

ActiveComposer-plugin

alareis/composer-cleanup
========================

0.2.0(5y ago)0411LGPL-3.0PHP

Since Jul 26Pushed 5y ago1 watchersCompare

[ Source](https://github.com/alareis/composer-cleanup)[ Packagist](https://packagist.org/packages/alareis/composer-cleanup)[ RSS](/packages/alareis-composer-cleanup/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (5)Used By (0)

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

[](#composer-cleanup-plugin)

Delete unnecessary file from the vendor dir. Based on [composer-cleanup-plugin by barryvdh](https://github.com/barryvdh/composer-cleanup-plugin).

> **Note:** This package is still experimental, usage in production is not recommended.

Install
-------

[](#install)

Require this package in your composer.json:

```
  composer global require alareis/composer-cleanup

```

Usage
-----

[](#usage)

This plugin will work automatically on any packages installed as `dist`. Therefore, if you are using it to build a package archive, simply run `composer install` with the `--prefer-dist` option.

Configuration
-------------

[](#configuration)

You can add custom rules in config section of composer file, like this:

```
"config": {
    "cleanup": {
        "bower-asset/moment-timezone" : [
            "data/unpacked"
        ]
    },
},

```

What does it do?
----------------

[](#what-does-it-do)

For every installed or updated package in the default list, in general:

1. Remove documentation, such as README files, docs folders, etc.
2. Remove tests, PHPUnit configs, and other build/CI configuration.
3. Remove bower ignored files

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85.7% 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 ~153 days

Total

5

Last Release

1867d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/33871095091a0bf9c42a4640454eac9e6b63403694bc64c2f0c3be86054a3f1b?d=identicon)[alareis](/maintainers/alareis)

---

Top Contributors

[![laisnea](https://avatars.githubusercontent.com/u/209386757?v=4)](https://github.com/laisnea "laisnea (6 commits)")[![alareis](https://avatars.githubusercontent.com/u/22182103?v=4)](https://github.com/alareis "alareis (1 commits)")

### Embed Badge

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

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

###  Alternatives

[humbug/box

Fast, zero config application bundler with PHARs.

1.3k801.5k68](/packages/humbug-box)[vaimo/composer-patches

Applies a patch from a local or remote file to any package that is part of a given composer project. Patches can be defined both on project and on package level. Optional support for patch versioning, sequencing, custom patch applier configuration and patch command for testing/troubleshooting added patches.

2994.3M14](/packages/vaimo-composer-patches)[mglaman/composer-drupal-lenient

1317.4M15](/packages/mglaman-composer-drupal-lenient)[drupal/core-composer-scaffold

A flexible Composer project scaffold builder.

5341.9M441](/packages/drupal-core-composer-scaffold)[roots/wordpress-core-installer

A Composer custom installer to handle installing WordPress as a dependency

4115.6M19](/packages/roots-wordpress-core-installer)[drupal/core-project-message

Adds a message after Composer installation.

2122.6M172](/packages/drupal-core-project-message)

PHPackages © 2026

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