所有由admin发布的文章

THINKPHP6安装

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

composer

1、查看当前composr版本
composer -V

2、当前composer更新为最新版

composer self-update
3、更新到指定版本

composer self-update 2.2.3

4、版本回滚到安装的上一个版本

composer self-update –rollback

5、版本更新并删除旧版本的备份
composer self-update –clean-backups