composer how to see what has been installed to expand the package (how to use the composer)

Sometimes we need to know the name and version information packages already installed, you will use the following command:

composer show -i

This test composer show --installed short order;

View global installation package name and version:

composer global show

We do not know what, when and how to use the command, you can list all the commands, and then type commands you do not understand, you can view the help information behind the increase -h:
View all composer command:

composer -l
或者:composer
或者:composer list

Then will come out a lot of command, pick one:

composer show -h

This command is meant how to use the composer show, -h -help is an abbreviation of.


Composer remove the dependency

When a composer using the installation dependencies, install the wrong package, on its Chinese website but can not find command to remove dependence, but to use according to the official website saying:

To get help from the command line, run the composer or composer list command,

And then combined with --help command for more help.

Appears a lot of command parameters, swept away, just before require, there is remove, which is to remove the command, examples are as follows:

composer remove twbs/bootstrap

But it just removes the dependency does not automatically load, but it is still dependent on the package vender folder, you can manually deleted.
 

Released 2395 original articles · won praise 53 · views 440 000 +

Guess you like

Origin blog.csdn.net/lxw1844912514/article/details/105251017