Blogger Information
Blog 48
fans 0
comment 0
visits 34144
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
composer安装(0806)
丶久而旧之丶
Original
829 people have browsed it

composer的使用和安装

准备工作

1.编辑环境变量

2.打开网站https://curl.haxx.se/docs/caextract.html下载CA证书

3.保存CA证书到PHP目录中并修改php.ini配置文件使证书生效

安装composer

1.打开composer中文网https://www.phpcomposer.com/点击下载/安装

2.通过vscode中的终端命令安装composer

3.把composer.phar文件安装到全局 (使命令执行时composer替代composer.phar)

使用composer安装组件

1.打开网站https://packagist.org/搜索组件名

2.使用composer install生成composer.lock文件和vendor目录

3.使用composer update更新composer.lock的版本号

4.也可通过composer reqiure命令直接生成composer.josn和composer.lock和vendor

5.使用composer create-project命令安装一个框架

总结

了解了composer的安装和使用

Correcting teacher:天蓬老师天蓬老师

Correction status:qualified

Teacher's comments:compser掌握了, 其实的包管理器, 用法是类似的
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