https://github.com/visavi/cleanup
Cleaning composer vendor directory
https://github.com/visavi/cleanup
clean cleaner cleanup composer php
Last synced: 3 months ago
JSON representation
Cleaning composer vendor directory
- Host: GitHub
- URL: https://github.com/visavi/cleanup
- Owner: visavi
- Created: 2017-01-11T09:14:37.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-12-08T17:00:08.000Z (over 5 years ago)
- Last Synced: 2025-03-28T12:21:14.205Z (4 months ago)
- Topics: clean, cleaner, cleanup, composer, php
- Language: PHP
- Homepage: http://visavi.net
- Size: 7.81 KB
- Stars: 23
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
Cleanup
=========[](https://packagist.org/packages/visavi/cleanup)
[](https://packagist.org/packages/visavi/cleanup)
[](https://packagist.org/packages/visavi/cleanup)
[](https://packagist.org/packages/visavi/cleanup)## Cleaning composer vendor directory
It cleans up any tests, descriptions, documentation, examples, etc.
* .git
* .github
* test
* tests
* travis
* demo
* example
* examples
* doc
* docs
* license
* changelog*
* changes*
* faq*
* contributing*
* history*
* upgrading*
* upgrade*
* readme*
* {,.}*.yml
* *.md
* *.xml
* *.txt
* *.dist
* *.neon
* .php_cs*
* .scrutinizer
* .gitignore
* .gitattributes
* .editorconfig
* .phpstorm.meta.php
* dockerfile
* composer.lock## Installing
```
composer require visavi/cleanup
```
## Run
```
./vendor/bin/cleanup
```## Option
--help (-h) - Display help message--include (-i) - include new rules pattern
--exclude (-e) - excludes from the pattern rule
--verbose (-v) - Increase the verbosity of messages
--path (-p) - Find on specific path
--dry (-d) - Run without actual remove
*the list of arguments must be passed by a comma*
## Example
```
./vendor/bin/cleanup -v --path symfony --include *.zip,*.rar --exclude doc,docs,test
```## License
The class is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)