PHPackages                             topfloor/composer-cleanup-vcs-dirs - 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. topfloor/composer-cleanup-vcs-dirs

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

topfloor/composer-cleanup-vcs-dirs
==================================

Automatically deletes .git directories in newly installed or updated dependencies.

1.1.0(4y ago)3798.2k↓72.4%5[2 PRs](https://github.com/VolantisDev/composer-cleanup-vcs-dirs/pulls)2GPL-2.0+PHPPHP &gt;=5.5

Since Oct 2Pushed 4y ago1 watchersCompare

[ Source](https://github.com/VolantisDev/composer-cleanup-vcs-dirs)[ Packagist](https://packagist.org/packages/topfloor/composer-cleanup-vcs-dirs)[ RSS](/packages/topfloor-composer-cleanup-vcs-dirs/feed)WikiDiscussions master Synced 2d ago

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

composer-cleanup-vcs-dirs
=========================

[](#composer-cleanup-vcs-dirs)

If you're stuck needing to commit your composer dependencies, you might find you need to delete some extra .git directories after every time you install or update something with Composer.

While not a best practice, sometimes it's simply a requirement.

How to use the plugin
---------------------

[](#how-to-use-the-plugin)

When required in composer.json, the plugin will automatically search for any .git directories in installed or updated dependencies and delete them immediately.

There's nothing else you need to do after requiring this plugin in your main composer.json file.

Running the command directly
----------------------------

[](#running-the-command-directly)

You can also run the cleanup-vcs-dirs command directly in Composer.

To do so, simply run:

```
composer cleanup-vcs-dirs

```

Your entire project will be scanned, and all child .git directories under the project directory will be deleted.

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity43

Moderate usage in the ecosystem

Community16

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 87.5% 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 ~870 days

Total

3

Last Release

1820d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/aa528157218959b2eda7d49d4ca73d114bd8e75af56ff6658c3c12b586a38533?d=identicon)[bmcclure](/maintainers/bmcclure)

---

Top Contributors

[![ReplicaObscura](https://avatars.githubusercontent.com/u/277977?v=4)](https://github.com/ReplicaObscura "ReplicaObscura (14 commits)")[![jacks0n](https://avatars.githubusercontent.com/u/469696?v=4)](https://github.com/jacks0n "jacks0n (2 commits)")

### Embed Badge

![Health badge](/badges/topfloor-composer-cleanup-vcs-dirs/health.svg)

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

###  Alternatives

[phpro/grumphp

A composer plugin that enables source code quality checks.

4.3k16.7M1.0k](/packages/phpro-grumphp)[symfony/stimulus-bundle

Integration with your Symfony app &amp; Stimulus!

17417.5M294](/packages/symfony-stimulus-bundle)[illuminate/session

The Illuminate Session package.

9939.3M850](/packages/illuminate-session)[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

103519.9k53](/packages/friendsoftypo3-content-blocks)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)[oro/platform

Business Application Platform (BAP)

645143.5k115](/packages/oro-platform)

PHPackages © 2026

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