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