This tool removes unnecessary files and directories from Composer vendor directory.
Forked from originally dg/composer-cleaner.
composer require janpecha/composer-cleaner
Then simply use composer update
.
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
}
}
}