Want to take your software engineering career to the next level? Join the mailing list for career tips & advice 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 over 2 years ago
Repo Created almost 6 years ago
Repo Last Updated over 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 🚀🚀🚀
Software engineers: It's time to get promoted. Starting NOW! Subscribe to my mailing list and I will equip you with tools, tips and actionable advice to grow in your career.
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)
  • almost 5 years How to activate this plugin?
  • almost 5 years Add a catch all rule which will use a default rule
  • about 5 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