PHPackages                             janpecha/composer-cleaner - 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. janpecha/composer-cleaner

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

janpecha/composer-cleaner
=========================

Victor The Cleaner: removes unnecessary files from vendor directory.

v1.1.0(4mo ago)02141BSD-3-ClausePHPPHP 7.4 - 8.5CI passing

Since Aug 8Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/janpecha/composer-cleaner)[ Packagist](https://packagist.org/packages/janpecha/composer-cleaner)[ Fund](https://www.janpecha.cz/donate/)[ RSS](/packages/janpecha-composer-cleaner/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (4)Used By (1)

Victor The Cleaner for Composer
===============================

[](#victor-the-cleaner-for-composer)

[![Build Status](https://github.com/janpecha/composer-cleaner/workflows/Build/badge.svg)](https://github.com/janpecha/composer-cleaner/actions)[![Downloads this Month](https://camo.githubusercontent.com/651d7d713d528d89cce326fa11c610e9f5531a15b821de5b1da0a5782c40ed19/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f6a616e70656368612f636f6d706f7365722d636c65616e65722e737667)](https://packagist.org/packages/janpecha/composer-cleaner)[![Latest Stable Version](https://camo.githubusercontent.com/f1e3c9b58ccca8569346eaece1ba2a6c1943b359b58e64d3f9bceb7fce382bcb/68747470733a2f2f706f7365722e707567782e6f72672f6a616e70656368612f636f6d706f7365722d636c65616e65722f762f737461626c65)](https://github.com/janpecha/composer-cleaner/releases)[![License](https://camo.githubusercontent.com/fa7d5fcf2c84b580327af52da95dd751703af65f079dc3c5a0081beac0789718/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4e65772532304253442d626c75652e737667)](https://github.com/janpecha/composer-cleaner/blob/master/license.md)

[![Donate](https://camo.githubusercontent.com/101b981194f1dafbf9c42e19c3034fe2d724e75be972cef0f4477074997834db/68747470733a2f2f6275796d65636f666665652e696e746d2e6f72672f696d672f646f6e6174652d62616e6e65722e76312e737667)](https://www.janpecha.cz/donate/)

This tool removes unnecessary files and directories from Composer vendor directory.

Forked from originally [dg/composer-cleaner](https://github.com/dg/composer-cleaner).

Installation
------------

[](#installation)

```
composer require janpecha/composer-cleaner

```

Then simply use `composer update`.

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

[](#configuration)

You can also specify paths to be ignored (ie they will not be deleted) via `composer.json`:

```
{
	"extra": {
		"cleaner-ignore": {
			"slevomat/eet-client": [  // name of package
				"wsdl*"               // files or subdirectories, you can use wildcards `*` and `?`
			],

			"mpdf/mpdf": true         // ignores whole package
		}
	}
}
```

###  Health Score

48

—

FairBetter than 94% of packages

Maintenance82

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~1857 days

Total

2

Last Release

120d ago

PHP version history (2 changes)v1.0.0PHP &gt;=5.6.0

v1.1.0PHP 7.4 - 8.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/5c980b1511b4a0350442dc23d89c99d4d9a2411b7e765d52c133ccacf616968b?d=identicon)[janpecha](/maintainers/janpecha)

---

Top Contributors

[![dg](https://avatars.githubusercontent.com/u/194960?v=4)](https://github.com/dg "dg (38 commits)")[![janpecha](https://avatars.githubusercontent.com/u/637719?v=4)](https://github.com/janpecha "janpecha (24 commits)")[![JanTvrdik](https://avatars.githubusercontent.com/u/175109?v=4)](https://github.com/JanTvrdik "JanTvrdik (11 commits)")[![matzeeable](https://avatars.githubusercontent.com/u/1008534?v=4)](https://github.com/matzeeable "matzeeable (1 commits)")[![barchard](https://avatars.githubusercontent.com/u/17622?v=4)](https://github.com/barchard "barchard (1 commits)")[![vrana](https://avatars.githubusercontent.com/u/117453?v=4)](https://github.com/vrana "vrana (1 commits)")[![finwe](https://avatars.githubusercontent.com/u/195675?v=4)](https://github.com/finwe "finwe (1 commits)")[![Kubo2](https://avatars.githubusercontent.com/u/6882599?v=4)](https://github.com/Kubo2 "Kubo2 (1 commits)")

---

Tags

composer

### Embed Badge

![Health badge](/badges/janpecha-composer-cleaner/health.svg)

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

###  Alternatives

[ergebnis/composer-normalize

Provides a composer plugin for normalizing composer.json.

1.1k37.3M2.1k](/packages/ergebnis-composer-normalize)[bamarni/composer-bin-plugin

No conflicts for your bin dependencies

52722.0M855](/packages/bamarni-composer-bin-plugin)[pyrech/composer-changelogs

Display changelogs after each composer update

5904.0M25](/packages/pyrech-composer-changelogs)[helhum/dotenv-connector

Makes it possible to set environment variables for composer projects.

1594.6M33](/packages/helhum-dotenv-connector)[mnsami/composer-custom-directory-installer

A composer plugin, to help install packages of different types in custom paths.

1395.0M52](/packages/mnsami-composer-custom-directory-installer)[ffraenz/private-composer-installer

A composer install helper for private packages

2331.7M5](/packages/ffraenz-private-composer-installer)

PHPackages © 2026

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