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. [Utility &amp; Helpers](/categories/utility)
4. /
5. alareis/composer-cleanup

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

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

0.2.0(5y ago)0539LGPL-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 2d 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

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

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

1919d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/22182103?v=4)[alareis](/maintainers/alareis)[@alareis](https://github.com/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

[symfony/runtime

Enables decoupling PHP applications from global state

74794.9M939](/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)
