Composer簡介及安裝

Composer 是 PHP 的一個(gè)依賴管理工具。它允許你申明項(xiàng)目所依賴的代碼庫,它會在你的項(xiàng)目中為你安裝他們。

在 Linux 和 Mac OS X 中可以運(yùn)行如下命令:

curl -sShttps://getcomposer.org/installer | phpmv composer.phar/usr/local/bin/composer

在 Windows 中,你需要下載并運(yùn)行Composer-Setup.exe

composer 官網(wǎng):https://getcomposer.org/

Options:

-h, --help Display this help message 顯示幫助信息

-q, --quiet Do not output any message 禁止輸出任何信息

-V, --version Display this application version 顯示當(dāng)前應(yīng)用程序的版本信息

--ansi Force ANSI output 強(qiáng)制 ANSI 輸出

--no-ansi Disable ANSI output 關(guān)閉 ANSI 輸出

-n, --no-interaction Do not ask any interactive question 不要詢問任何交互問題

--profile Display timing and memory usage information 顯示時(shí)間和內(nèi)存使用信息

--no-plugins Whether to disable plugins. 是否禁用插件

-d, --working-dir=WORKING-DIR If specified, use the given directory as working directory. 如果指定的話,使用給定的目錄作為工作目錄

-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug? 增加反饋信息的詳細(xì)度 1表示正常輸出,2表示更詳細(xì)的輸出,3則是為了 debug。?

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

推薦閱讀更多精彩內(nèi)容