Pages

2019年11月20日水曜日

composer 削除方法

$ composer remove --no-update phpoffice/phpexcel
$ composer update --dry-run

Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 0 installs, 0 updates, 1 removal
  - Uninstalling phpoffice/phpexcel (1.8.2)

- Uninstalling *** をアップデートで削除

$ composer update phpoffice/phpexcel

複数該当する場合

Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 0 installs, 0 updates, 1 removal
  - Uninstalling phpoffice/phpexcel (1.8.2)
  - Uninstalling phpoffice/hoge (1.8.2)
Package phpunit/phpunit-mock-objects is abandoned, you should avoid using it. No replacement was suggested.

$ composer update phpoffice/phpexcel phpoffice/hoge

Followers