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)2697.6k↓24.3%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 1mo 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 85% 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

1774d 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

[illuminate/session

The Illuminate Session package.

9937.4M753](/packages/illuminate-session)[drupal/core-project-message

Adds a message after Composer installation.

2122.6M172](/packages/drupal-core-project-message)[shyim/danger-php

Port of danger to PHP

8544.9k](/packages/shyim-danger-php)[j0k3r/graby-site-config

Graby site config files

23365.8k3](/packages/j0k3r-graby-site-config)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[vaimo/composer-changelogs

Provide information about package changes based on changelog files that are bundled with releases; provide tools for generating documentation files from changelog sources

11150.5k10](/packages/vaimo-composer-changelogs)

PHPackages © 2026

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