Blogger Information
Blog 46
fans 3
comment 2
visits 39243
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
使用Composer下载ThinkPHP5.1源码的步骤 2018年5月21日
墨雨的博客
Original
1093 people have browsed it

1.打开Composer中文网(https://www.phpcomposer.com/),点击下载。

2.以windows系统为例,下载安装包Composer-Setup.exe文件。

3.执行Composer-Setup.exe,按提示安装。

4.打开windows命令行工具,在命令行输入composer进行测试。

5.(推荐)安装中国全量镜像,提升下载速度,在命令行输入

  composer config -g repo.packagist composer https://packagist.phpcomposer.com

6.点击composer中文网安装包列表跳转到包依赖搜索器(https://packagist.org),在搜索框输入thinkphp,

  复制下载命令: composer create-project topthink/think 备用

7.打开windows命令行窗口,进入到你的Web目录,例如: WWW

  输入刚才复制的命令: composer create-project topthink/think  tp51

  tp51是自定义的项目名称,其实就是一个目录,不需要事先创建,下载时会自动创建!

8.等待下载完成(其实在中远程的GitHub服务器上下载的)

9.根据需要安装扩展库,比如:验证码,图像处理等,可在thinkphp.5.1开发手册的‘扩展库’条目下查找相应的安装命令。


Correction status:Uncorrected

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
Author's latest blog post