You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be really interesting to have an command for uninstall a package.
It is true that for a particular project, we can directly edit the composer.json file, but when the library is installed in global mode, we must change the composer.json file in the folder defined by COMPOSER_HOME, which frankly is not easy!
I take an example with PHPUnit:
Since version 4.0, it is recommended to use Composer (in global mode) instead of PEAR. Ok, It's cool, we use our favorite tool of dependency management, and we follow the documentation for the install:
$ composer.phar global require "phpunit/phpunit=4.0.*"
Except that now, a new update is available, the 4.1. A simple update does not pass to the higher release, and change the version number in command line is not possible:
$ composer.phar global require "phpunit/phpunit=4.1.*"
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Can only install one of: phpunit/phpunit-mock-objects[2.1.0, 2.0.5].
- Can only install one of: phpunit/phpunit-mock-objects[2.1.0, 2.0.5].
- phpunit/phpunit 4.1.0 requires phpunit/phpunit-mock-objects ~2.1 -> satisfiable by phpunit/phpunit-mock-objects[2.1.0].
- Installation request for phpunit/phpunit 4.1.* -> satisfiable by phpunit/phpunit[4.1.0].
- Installation request for phpunit/phpunit-mock-objects == 2.0.5.0 -> satisfiable by phpunit/phpunit-mock-objects[2.0.5].
It is therefore necessary to manually change the global composer.json file, which is not easy.
The problem also arises when one wants to test or temporarily use a library in global mode: impossible to easily uninstall by command line.
Is it possible to add this command? I think that would be very useful since Composer can install libraries in global mode.
The text was updated successfully, but these errors were encountered:
It would be really interesting to have an command for uninstall a package.
It is true that for a particular project, we can directly edit the
composer.json
file, but when the library is installed in global mode, we must change thecomposer.json
file in the folder defined byCOMPOSER_HOME
, which frankly is not easy!I take an example with PHPUnit:
Since version 4.0, it is recommended to use
Composer
(in global mode) instead of PEAR. Ok, It's cool, we use our favorite tool of dependency management, and we follow the documentation for the install:$ composer.phar global require "phpunit/phpunit=4.0.*"
Except that now, a new update is available, the 4.1. A simple update does not pass to the higher release, and change the version number in command line is not possible:
It is therefore necessary to manually change the global
composer.json
file, which is not easy.The problem also arises when one wants to test or temporarily use a library in global mode: impossible to easily uninstall by command line.
Is it possible to add this command? I think that would be very useful since Composer can install libraries in global mode.
The text was updated successfully, but these errors were encountered: