THINKPHP6开发手册
https://www.kancloud.cn/manual/thinkphp6_0/1037479
ThinkTemplate开发指南
https://www.kancloud.cn/manual/think-template/1286403
1、composer换镜像源
阿里云:
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
华为云:
composer config -g repo.packagist composer https://repo.huaweicloud.com/repository/php/
2、composer安装稳定版thinkphp
composer create-project topthink/think tp
这里的tp目录就是应用根目录,名你可以任意更改
如果已经安装过,那么切换到应用根目录下面,然后执行下面的命令进行更新:
composer update topthink/framework
3、安装多应用模式扩展think-multi-app
composer require topthink/think-multi-app
4、安装think-view模板引擎驱动
composer require topthink/think-view
5、使用Composer安装think-captcha扩展包
composer require topthink/think-captcha