Blogger Information
Blog 7
fans 0
comment 0
visits 4894
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
Composer 命令实践
张九明
Original
746 people have browsed it

Composer 命令实践

1. 改变镜像源,加快下载速度

  1. composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/

效果:

2. 查看版本

  1. composer -V

效果:

3. 查看命令

  1. composer -list

效果:

4. composer 自我更新版

  1. composer self-update

效果:

5. composer 显示资源包信息

  1. composer show symfony/finder

效果:

6. composer 搜索资源包依赖

  1. composer search medoo

效果:

7. composer 交互式初始化

  1. composer init

效果:

8. composer 安装资源包

  1. composer require catfan/medoo

效果:

9. composer 创建新项目

  1. composer create-project laravel/laravel website

效果:

10. composer 基于 composer.lock 安装资源包

  1. composer install

效果:

11. composer 自动加载文件更新

  1. composer dump

效果:

12. composer 显示资源包信息

  1. composer info

效果:

Correcting teacher:天蓬老师天蓬老师

Correction status:qualified

Teacher's comments:composer , composer list 的功能是一样的, 有不少指令都这样, 有简写, 要注意
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
Author's latest blog post