> composer show 用于查看软件包 #### 1. 列出所有可用的软件包 --- 在TP6.0框架根目录下执行命令 ``` composer show ``` ![](https://img.itqaq.com/art/content/e6b83502d6f770066f9c118716772ad3.png) #### 2. 查看某个包的详细信息 --- ``` composer show topthink/think-view ``` ![](https://img.itqaq.com/art/content/1147c10ce0737813e3b9b94c9688518b.png) #### 3. 参数选项(只列出部分常用的,详细的请看官方文档) --- [https://getcomposer.org/doc/03-cli.md#show](https://getcomposer.org/doc/03-cli.md#show) + **--all: 列出所有存储库中可用的所有软件包** 使用该参数则从存储库读取软件包 ``` composer show --all composer show topthink/think-view --all ``` ![](https://img.itqaq.com/art/content/85d76dfe4b52c72346b9d8ed7759d170.png) + **--path(-P): 列出软件包路径** ``` composer show -P composer show topthink/think-view -P ``` ![](https://img.itqaq.com/art/content/9b1435f6a6b74d364e2bbf5b7a85d235.png) + **--outdated(-o): 表示 --latest,但是仅列出具有较新版本的软件包** ``` composer show -o ``` ![](https://img.itqaq.com/art/content/9997743bab27c36b5d06510b6532f84f.png)