martinshaw / decomposer
List Composer 'vendor' directories on your system, how heavy they are, then you can select which ones you want to delete to free up space (NPM's npkill but for PHP Composer)
Installs: 19
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- php-tui/php-tui: ^0.1.0
README
List Composer 'vendor' directories on your system, how heavy they are, then you can select which ones you want to delete to free up space (NPM's npkill but for PHP Composer)
Screenshot
Usage
decomposer # Opens the interactive UI decomposer --all # Deletes all vendor directories without interaction
Installation
composer global require martinshaw/decomposer
This will install the decomposer
command in your global composer bin directory, which is usually ~/.composer/vendor/bin
or ~/.config/composer/vendor/bin
on Unix systems and %APPDATA%\Composer\vendor\bin
on Windows.
To access the decomposer
command from anywhere, you need to add the global composer bin directory to your system's PATH environment variable.
On Windows
- Open the Control Panel.
- Click on System and Security.
- Click on System.
- Click on Advanced system settings.
- Click on Environment Variables.
- Under System variables, find and select the
Path
variable, then click on Edit. - Click on New and add the path to your global composer bin directory.
- Click on OK on all windows to apply the changes.
On Linux and macOS
Depending on if your global composer bin directory is ~/.composer/vendor/bin
or ~/.config/composer/vendor/bin
, you need to add the following line to your ~/.bashrc
, ~/.zshrc
, or ~/.profile
file:
export PATH="$PATH:$HOME/.composer/vendor/bin"
or
export PATH="$PATH:$HOME/.config/composer/vendor/bin"
Then, run the following command to apply the changes:
source ~/.bashrc
or source ~/.zshrc
or source ~/.profile
depending on which file you added the line to.