如何使用 composer 'Uninstall' 或 'Remove' 插件?

How to 'Uninstall' or 'Remove' plugin using composer?

我在我的 cakephp3 项目中安装了一些不必要的插件,我想从我的项目中 remove/uninstall,我找不到任何解决方案。有人会建议我做什么吗?

How to 'Uninstall' plugin using composer, which installed by the composer in cakephp3?

composer remove packageauthor/packagename --update-with-dependencies

您还可以修改您的 composer.json 以摆脱您不想要的和 运行 composer update

只需使用 composer remove packageauthor/packagename,因为 --no-update-with-dependencies 已被弃用,现在是默认设置。