January 3, 2017

php composer unrequire undo require remove

If you no longer need a package and want it removed from the configuration, remove it manually from composer.json and run composer update.

This will update the dependencies based on your composer.json. Since you removed that package from composer.json, the actual package will be deleted from the system. If you only want to remove the package without updating the other installed packages, mention it in the update command. For example: composer update example/example.

No comments: