DS-CzY

thinkphp 5开始可以使用composer安装

所以在安装thinkphp5.1之前,我们先安装composer ,下载地址:https://www.phpcomposer.com/ 

安装完composer之后,在命令行下:composer create-project topthink/think=5.1.* tp5 等待下载完,think=5.1.*框架thinkphp的版本

如果原来已经安装有thinkphp5.0的,则使用composer update topthink/framework进行更新安装

查看tp版本号:

use App ;

 

var_dump(App:version()) ;

分类:

技术点:

相关文章: