Skip to content

Simple command to delete composer vendor folders in your Linux system and free up your storage.

License

Notifications You must be signed in to change notification settings

abdelhamiderrahmouni/vendorkill

Repository files navigation

Vendor Kill

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

a composer package to install globally and remove composer vendor folders in you old project to save storage.

Installation && Update

You can install the package globally via composer (and update it) by running the following command:

composer global require abdelhamiderrahmouni/vendorkill

you will find it installed in ~/.composer/vendor/bin or ~/.config/composer/vendor/bin directory. add it to your path to use it globally or create an alias like the following:

alias vendorkill="~/.composer/vendor/bin/vendorkill"
# or
alias vendorkill="~/.config/composer/vendor/bin/vendorkill"

Usage

vendorkill [path: defaults to current path] [options: --maxdepth=2 --full]
## Examples

vendorkill # remove vendor folders in current path

vendorkill /path/to/project # remove vendor folders in /path/to/project

vendorkill /path/to/project --maxdepth=4 # remove vendor folders in /path/to/project with maxdepth=4

vendorkill /path/to/project --full # remove vendor folders in /path/to/project and all subdirectories

Roadmap

  • create the command
  • add support for windows
  • add a build workflow to build the phar file automatically
  • ... share your ideas in the issues

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please open an issue to report any security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

Simple command to delete composer vendor folders in your Linux system and free up your storage.

Topics

Resources

License

Stars

Watchers

Forks

Languages