PHPackages                             mbrowniebytes/yii2-clean-vendors - 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. mbrowniebytes/yii2-clean-vendors

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

mbrowniebytes/yii2-clean-vendors
================================

Clean composer vendor/ directory by removing docs, tests, gits, etc

21.5k1PHP

Since Dec 21Pushed 8y ago1 watchersCompare

[ Source](https://github.com/mbrowniebytes/yii2-clean-vendors)[ Packagist](https://packagist.org/packages/mbrowniebytes/yii2-clean-vendors)[ RSS](/packages/mbrowniebytes-yii2-clean-vendors/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Yii2 command extension to clean composer's vendor/ directory
============================================================

[](#yii2-command-extension-to-clean-composers-vendor-directory)

This extension removes docs, tests, gits, etc from composer's vendor/ directory

It is based on [barryvdh/composer-cleanup-plugin](https://github.com/barryvdh/composer-cleanup-plugin)

The format of the rules and the removal logic have been copied.

The main changes are:

- Callable as a Yii2 command
- Provides progress feedback
- Default rule added

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require mbrowniebytes/yii2-clean-vendors:dev-master

```

or add

```
"mbrowniebytes/yii2-clean-vendors": "dev-master"
```

to the require section of your composer.json.

Usage
-----

[](#usage)

To use this extension, add the following code in your application configuration (console.php):

```
'controllerMap' => [
    'clean-vendors' => [
        'class' => 'mbrowniebytes\yii2cleanvendors\CleanVendorsController',
    ],
],
```

Then call the extension from the command line

```
/path/yii> php yii clean-vendors
Checking vendor/ to remove docs, gits, tests, etc ..
Checking 56 vendor packages ..
Done. Scanned 25 vendor packages, cleaned 10 files/dirs

```

or add the extension to the composer scripts section to always clean vendors

```
    "scripts": {
		"post-update-cmd": [
			"php yii clean-vendors"
		]
    },

```

Additional arguments
--------------------

[](#additional-arguments)

```
-dry-run	do not delete anything
-verbose	echo rules being run, dir/file being deleted
-silent		do not echo anything

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 76.9% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/538fc616ac848c8fa2a4a43c1d532dda8dd053bb47049fb7e758f6736156caec?d=identicon)[browniebytes](/maintainers/browniebytes)

---

Top Contributors

[![mbrowniebytes](https://avatars.githubusercontent.com/u/699646?v=4)](https://github.com/mbrowniebytes "mbrowniebytes (10 commits)")[![SunwelLight](https://avatars.githubusercontent.com/u/5959247?v=4)](https://github.com/SunwelLight "SunwelLight (3 commits)")

### Embed Badge

![Health badge](/badges/mbrowniebytes-yii2-clean-vendors/health.svg)

```
[![Health](https://phpackages.com/badges/mbrowniebytes-yii2-clean-vendors/health.svg)](https://phpackages.com/packages/mbrowniebytes-yii2-clean-vendors)
```

###  Alternatives

[stepanenko3/nova-markdown

Nova Markdown advanced field

1028.7k](/packages/stepanenko3-nova-markdown)

PHPackages © 2026

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