Are you happy with your logging solution? Would you help us out by taking a 30-second survey? Click here


Composer plugin for cleaning up unused files from packages.

Subscribe to updates I use composer-cleanup-plugin

Statistics on composer-cleanup-plugin

Number of watchers on Github 63
Number of open issues 6
Average time to close an issue about 8 hours
Main language PHP
Average time to merge a PR about 1 month
Open pull requests 1+
Closed pull requests 1+
Last commit almost 2 years ago
Repo Created over 5 years ago
Repo Last Updated almost 2 years ago
Size 20 KB
Organization / Authorbarryvdh
Page Updated
Do you use composer-cleanup-plugin? Leave a review!
View open issues (6)
View composer-cleanup-plugin activity
View on github
Fresh, new opensource launches 🚀🚀🚀
Trendy new open source projects in your inbox! View examples

Subscribe to our mailing list

Evaluating composer-cleanup-plugin for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)

Composer Cleanup Plugin

Remove tests & documentation from the vendor dir. Based on laravel-vendor-cleanup but implemented as a Composer Plugin instead of a Laravel command.

Usually disk size shouldn't be a problem, but when you have to use FTP to deploy or have very limited disk space, you can use this package to cut down the vendor directory by deleting files that aren't used in production (tests/docs etc).

Note: This package is still experimental, usage in production is not recommended. In normal circumstances, you shouldn't care about disk space! Try deploying with SSH/Git instead.


Require this package in your composer.json:

  "barryvdh/composer-cleanup-plugin": "0.1.x@dev"

Adding rules

Please submit a PR to src/CleanupRules.php to add more rules for packages. Make sure you test them first, sometimes tests dirs are classmapped and will error when deleted.

composer-cleanup-plugin open issues Ask a question     (View All Issues)
  • about 4 years How to activate this plugin?
  • over 4 years Add a catch all rule which will use a default rule
  • over 4 years Doc/Test files in subdirectories
composer-cleanup-plugin open pull requests (View All Pulls)
  • Added laravel 5.1 rules + Reorder
composer-cleanup-plugin list of languages used
Other projects in PHP