Coder Social home page Coder Social logo

martinshaw / decomposer Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 78 KB

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)

PHP 100.00%

decomposer's Introduction

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)

Screenshot

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

  1. Open the Control Panel.
  2. Click on System and Security.
  3. Click on System.
  4. Click on Advanced system settings.
  5. Click on Environment Variables.
  6. Under System variables, find and select the Path variable, then click on Edit.
  7. Click on New and add the path to your global composer bin directory.
  8. 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.

decomposer's People

Contributors

martinshaw avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.