> composer browse 用于打開或查看包的存儲庫和主頁 #### 1. 使用示例 --- browse 命令官方手冊:[https://getcomposer.org/doc/03-cli.md#browse-home](https://getcomposer.org/doc/03-cli.md#browse-home) 參數(shù)選項: + --homepage(-H):打開主頁而不是存儲庫URL + --show(-s):僅顯示主頁或存儲庫URL **a. 打開包的存儲庫** ``` composer browse topthink/think ``` 用默認瀏覽器打開包的存儲庫:https://github.com/top-think/think ![](https://img.itqaq.com/art/content/fc5187b3433ef88a5f46f3316779bd73.png) **b. 打開包的主頁** ``` composer browse topthink/think -H ``` ![](https://img.itqaq.com/art/content/19f03e9e05b161bb23ee87c9fc03266c.png) **c. 查看包的存儲庫地址** ``` composer browse topthink/think -s ``` **d. 查看包的主頁地址** ``` composer browse topthink/think -s -H ``` ![](https://img.itqaq.com/art/content/1b058cfcbe17cbaa8fb5c9ce7781bd78.png) #### 2. composer browse 命令總結(jié) --- **a. 打開包的存儲庫,不加-H參數(shù)默認打開的是存儲庫,而不是主頁** ``` composer browse topthink/think ``` **b. 打開包的主頁** ``` composer browse topthink/think -H ``` **c. 查看包的存儲庫地址** ``` composer browse topthink/think -s ``` **d. 查看包的主頁地址** ``` composer browse topthink/think -s -H ```