#### 1. 前言 --- 每次创建一个 TP6.0 新项目时,都要去翻文档找安装框架和扩展包的命令 本文记录一下,方便以后复制粘贴。也许此时你会想,我怎么会这么懒,嗯,没错,就是这么懒 #### 2. 下载 TP6.0 框架的最新正式版 --- TP3、TP5 可以在官网、git、composer 多种途径下载,但是,从 TP6 开始,只支持通过 composer 下载 ``` composer create-project topthink/think=6.0.* project_name ``` #### 3. TP6.0 框架官方扩展包 --- + 一次引入多个扩展包 ``` composer require topthink/think-multi-app topthink/think-view topthink/think-captcha ``` + 多应用模式扩展 ``` composer require topthink/think-multi-app ``` + 视图驱动扩展 ``` composer require topthink/think-view ``` + 验证码扩展 ``` composer require topthink/think-captcha ``` + 消息队列扩展 ``` composer require topthink/think-queue ``` #### 4. 常用扩展包推荐 --- 微信开发工具包,集成微信公众号、微信小程序、微信开放平台、微信支付等功能, 官网: [https://www.easywechat.com](https://www.easywechat.com) ``` composer require overtrue/wechat:~4.0 -vvv ``` 微信支付、支付宝支付集成包, 官方网站: [https://pay.yansongda.cn](https://pay.yansongda.cn) ``` composer require yansongda/pay ``` 生成二维码扩展包 ``` composer require endroid/qr-code ``` Json Web Token(jwt鉴权扩展包) ``` composer require firebase/php-jwt ``` PHP操作Excel表格扩展包: 导出 Excel 表格,Excel 表格数据入库 ``` composer require phpoffice/phpexcel composer require phpoffice/phpspreadsheet ```