composer browse 查看包的存储库和主页
composer browse 用于打开或查看包的存储库和主页
1. 使用示例
browse 命令官方手册:https://getcomposer.org/doc/03-cli.md#browse-home
参数选项:
- --homepage(-H):打开主页而不是存储库URL
- --show(-s):仅显示主页或存储库URL
a. 打开包的存储库
composer browse topthink/think
用默认浏览器打开包的存储库:https://github.com/top-think/think
b. 打开包的主页
composer browse topthink/think -H
c. 查看包的存储库地址
composer browse topthink/think -s
d. 查看包的主页地址
composer browse topthink/think -s -H
2. composer browse 命令总结
a. 打开包的存储库,不加-H参数默认打开的是存储库,而不是主页
composer browse topthink/think
b. 打开包的主页
composer browse topthink/think -H
c. 查看包的存储库地址
composer browse topthink/think -s
d. 查看包的主页地址
composer browse topthink/think -s -H