sc0 / vendors-cleanup
This package removes unwanted files from vendor directory
Installs: 23 387
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 1
Open Issues: 0
Language:Shell
README
Clear php vendor-dir from unwanted files
Script removes:
- tests and related files
- docs
- composer files
- all dotfiles
- Symfony's WebProfilerBundle and DebugBundle which are not needed in production environment
- Symfony's Intl data
Why?
On typical Symfony installation we have about ~10k files
$ find vendor -type f | wc -l
12843
But a big part of them is not required in production environment and may be removed
$ ./vendor/bin/clear_vendors
$ find vendor -type f | wc -l
5579
Usage
composer require sc0/vendors-cleanup
./vendor/bin/clear_vendors