PHPackages                             greg-1-anderson/core-vendor-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. greg-1-anderson/core-vendor-cleanup

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

greg-1-anderson/core-vendor-cleanup
===================================

Removes directories from the vendor directory.

012PHP

Since Jul 1Pushed 7y agoCompare

[ Source](https://github.com/greg-1-anderson/core-vendor-cleanup)[ Packagist](https://packagist.org/packages/greg-1-anderson/core-vendor-cleanup)[ RSS](/packages/greg-1-anderson-core-vendor-cleanup/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

```
From https://www.drupal.org/project/drupal/issues/3057094#comment-13165992 (#32)

The Drupal Vendor Cleanup Composer Plugin
=========================================

Thanks for using this Drupal component.

You can participate in its development on Drupal.org, through our issue system:
https://www.drupal.org/project/issues/drupal

You can get the full Drupal repo here:
https://www.drupal.org/project/drupal/git-instructions

You can browse the full Drupal repo here:
http://cgit.drupalcode.org/drupal

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

This Composer plugin removes extraneous directories from the project's vendor
directory. They're typically directories which might contain executable files,
such as test directories.

This sort of processing is required for projects that have a vendor directory
inside the HTTP server docroot. This is a common layout for Drupal.

By default, the plugin knows how to clean up packages for Drupal core, so you
can require drupal/core-vendor-cleanup in your project and the rest will happen
auto-magically.

The plugin can also be configured using the project's composer.json extra field.

How do I set it up?
-------------------

Require this Composer plugin into your project:

    composer require drupal/core-vendor-cleanup

Then perform a clean install or update:

    $ rm -rf vendor/
    $ composer install

When you install or update, this plugin will look through each package and
remove directories it knows about.

You can see the list of default package cleanups for this plugin in Config.php.
If you discover that this list needs updating, please file an issue about it:
https://www.drupal.org/project/issues/drupal

In addition to the default list of packages, you can configure the plugin using
the root package's composer.json extra field, like this:

    "extra": {
      "drupal-core-vendor-cleanup": {
        "vendor/package": ["test", "documentation"]
      }
    }

The above code will tell the plugin to remove the test/ and documentation/
directories from the 'vendor/package' package when it is installed or updated.
```

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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/b34cc6bd882277b6c6dda19bf6631ae5c3a909fd667c826a15121642cdc051b2?d=identicon)[greg.1.anderson](/maintainers/greg.1.anderson)

---

Top Contributors

[![greg-1-anderson](https://avatars.githubusercontent.com/u/612191?v=4)](https://github.com/greg-1-anderson "greg-1-anderson (4 commits)")

### Embed Badge

![Health badge](/badges/greg-1-anderson-core-vendor-cleanup/health.svg)

```
[![Health](https://phpackages.com/badges/greg-1-anderson-core-vendor-cleanup/health.svg)](https://phpackages.com/packages/greg-1-anderson-core-vendor-cleanup)
```

###  Alternatives

[heyday/silverstripe-menumanager

Allows complex menu management to be handled through the CMS when a simple tree structure is not enough.

35310.8k9](/packages/heyday-silverstripe-menumanager)[politriukas/avataaars

PHP SVG avatar generator based on https://github.com/fangpenlin/avataaars-generator

112.0k](/packages/politriukas-avataaars)

PHPackages © 2026

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