博客
关于我
如何使用composer下载tp5(5.0.24)框架
阅读量:311 次
发布时间:2019-03-03

本文共 512 字,大约阅读时间需要 1 分钟。

第一步:https://www.phpcomposer.com内下载最新composer版本

第二步:安装composer.exe,傻瓜式点点点(注意选择正确的php.exe)
第三步:运行命令提示符,输入“composer”检测是否安装成功,若成功可以看到如下内容,在这里插入图片描述接着,定位到tp5的安装目录,并下载最新版本tp。在这里插入图片描述
为了避免安装过慢,可以使用阿里云的 composer 镜像:composer config -g repo.packagist composer https://packagist.phpcomposer.com。
最后,composer create-project topthink/think=5.0.* tp5 --prefer-dist表示下载安装最新的5.0版本,tp5为文件夹名称。

2020/8/31 若使用composer下载thinkphp时报错无法从相应地址里获取源数据,则可以更新url(非官方手册所提供的阿里云地址):

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

转载地址:http://bxum.baihongyu.com/

你可能感兴趣的文章
nginx安装配置
查看>>
Nginx实战经验分享:从小白到专家的成长历程!
查看>>
Nginx实现反向代理负载均衡
查看>>
nginx实现负载均衡
查看>>
nginx常用命令及简单配置
查看>>
Nginx常用屏蔽规则,让网站更安全
查看>>
nginx开机启动脚本
查看>>
nginx异常:the “ssl“ parameter requires ngx_http_ssl_module in /usr/local/nginx/conf
查看>>
nginx总结及使用Docker创建nginx教程
查看>>
nginx报错:the “ssl“ parameter requires ngx_http_ssl_module in /usr/local/nginx/conf/nginx.conf:128
查看>>
nginx报错:the “ssl“ parameter requires ngx_http_ssl_module in usrlocalnginxconfnginx.conf128
查看>>
nginx日志分割并定期删除
查看>>
Nginx日志分析系统---ElasticStack(ELK)工作笔记001
查看>>
Nginx映射本地json文件,配置解决浏览器跨域问题,提供前端get请求模拟数据
查看>>
nginx最最最详细教程来了
查看>>
Nginx服务器---正向代理
查看>>
Nginx服务器上安装SSL证书
查看>>
Nginx服务器基本配置
查看>>
Nginx服务器的安装
查看>>
Nginx标准配置文件(包括反向代理、大文件上传、Https证书配置、文件预览等)
查看>>