composer 安裝
官方地址:https://getcomposer.org/download/ 下載地址:https://getcomposer.org/Composer-Setup.exe 下載後直接安裝即可。
檢視composer 版本
- composer -v
composer 更新
- composer update
- composer self -update (如果普通更新不了,就使用該命令)
composer 降低版本
composer self-update -r
- 或者是
composer self-update --1
其他常用命令
composer list:獲取幫助資訊;
composer init:以互動方式填寫composer.json檔案資訊;
composer search:在當前專案中搜尋依賴包;
composer show:列舉所有可用的資源包;
composer validate:檢測composer.json檔案是否有效;
composer create-project:基於composer建立一個新的專案;
composer dump-autoload:在新增新的類和目錄對映是更新autoloader
composer remove laravel/ui :刪除依賴後還需要去vender資料夾裡,手動刪除
————————————————
版權宣告:本文為CSDN博主「wjcms」的原創文章,遵循CC 4.0 BY-SA版權協議,轉載請附上原文出處連結及本宣告。
原文連結:https://blog.csdn.net/wjcms/article/details/107119237