Victor The Cleaner for Composer
This tool removes unnecessary files and directories from Composer vendor directory.
Installation
composer require dg/composer-cleaner
Then simply use composer update
.
Configuration
You can also specify paths to be ignored (ie they will not be deleted) via composer.json
:
{
"extra": {
"cleaner-ignore": {
"slevomat/eet-client": [ // name of package
"wsdl*" // files or subdirectories, you can use wildcards `*` and `?`
],
"mpdf/mpdf": true // ignores whole package
}
}
}
If you like it, please make a donation now. Thank you!