Composer简介及安装

Composer 是 PHP 的一个依赖管理工具。它允许你申明项目所依赖的代码库,它会在你的项目中为你安装他们。

在 Linux 和 Mac OS X 中可以运行如下命令:

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

在 Windows 中,你需要下载并运行Composer-Setup.exe

composer 官网:https://getcomposer.org/

Options:

-h, --help Display this help message 显示帮助信息

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

-V, --version Display this application version 显示当前应用程序的版本信息

--ansi Force ANSI output 强制 ANSI 输出

--no-ansi Disable ANSI output 关闭 ANSI 输出

-n, --no-interaction Do not ask any interactive question 不要询问任何交互问题

--profile Display timing and memory usage information 显示时间和内存使用信息

--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  增加反馈信息的详细度 1表示正常输出,2表示更详细的输出,3则是为了 debug。 

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容