Composer:列出项目脚本和插件?

Ala*_*orm 8 php composer-php composer-plugin

作曲家有没有内置的方法来显示当前项目中的插件列表?或者是寻找作曲家插件某种文本搜索通过唯一的选择composer.json文件vendor的东西,如

$ find vendor -name composer.json | xargs grep -i -r 'composer-plugin' 
Run Code Online (Sandbox Code Playgroud)

小智 8

由于 Composer 插件必须需要该composer-plugin-api软件包(请参阅Composer 文档),因此您可以使用以下命令列出插件:

Composer 依赖于 Composer-plugin-api

更多详细信息请参见:https://getcomposer.org/doc/03-cli.md#depends-why-


Tom*_*uba 3

你可以跑步composer show -i( 的缩写--installed)。

请参阅:/sf/answers/1063031371/