Blogger Information
Blog 24
fans 0
comment 0
visits 18745
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
composer常用命令
昔年
Original
648 people have browsed it

1.composer安装

https://docs.phpcomposer.com/00-intro.html#Installation-Windows
下载安装就行,Windows要配置环境变量
安装后在cmd命令行输入composer出现如下界面则安装成功。

为了后面下载安装包速度快,需要切换镜像:
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/

2.composer常用命令

composer search 包名 搜索依赖包(很少用,直接网站搜索)
composer init 初始化
composer update 更新依赖包
composer install 安装依赖包
composer require 命令增加新的依赖包到当前目录的 composer.json 文件中
composer create-project 创建项目
Correcting teacher:天蓬老师天蓬老师

Correction status:qualified

Teacher's comments:总结不错, 表格内文字非常的到位, 希望记住
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments