To install PHPUnit worldwide, I used the following command:
composer global require 'phpunit/phpunit=3.7.*'
Now I’d like to uninstall PHPUnit on a global scale.
Asked by winkster
Run the following command to uninstall a package that has been installed globally:
composer global remove phpunit/phpunit
Many commands, such as install, require, and update, can be run from the COMPOSER HOME directory using the global command.
Visit http://getcomposer.org/doc/03-cli.md#global for more information.
COMPOSER HOME depends on your system (on Linux, it’s /.composer); for additional information, visit http://getcomposer.org/doc/03-cli.md#composer-home.
Answered by Jakub Zalas
You can also utilize another method.
Also, remove certain required places from the composer.json file.
Finally, run composer update. This is a long way, but it is becoming clearer.
Answered by WiRight
Post is based on https://stackoverflow.com/questions/19217477/how-to-remove-globally-a-package-from-composer