Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Composer: List Project Scripts and Plugins?

Does composer have any built in way to display a list of plugins in the current project? Or is the only option for finding composer plugins some sort of text search through the composer.json files in vendor with something like

$ find vendor -name composer.json | xargs grep -i -r 'composer-plugin' 
like image 364
Alan Storm Avatar asked Apr 20 '16 23:04

Alan Storm


1 Answers

Since a Composer plugin must require the composer-plugin-api package (see Composer documentation) you can list the plugins with this command:

composer depends composer-plugin-api

More details here: https://getcomposer.org/doc/03-cli.md#depends-why-

like image 98
Fabien V Avatar answered Oct 03 '22 20:10

Fabien V