每次创建一个 TP6.0 新项目时,都要去翻文档找安装框架和扩展包的命令
本文记录一下,方便以后复制粘贴。也许此时你会想,我怎么会这么懒,嗯,没错,就是这么懒
TP3、TP5 可以在官网、git、composer 多种途径下载,但是,从 TP6 开始,只支持通过 composer 下载
composer create-project topthink/think=6.0.* project_name
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
微信开发工具包,集成微信公众号、微信小程序、微信开放平台、微信支付等功能, 官网: https://www.easywechat.com
composer require overtrue/wechat:~4.0 -vvv
微信支付、支付宝支付集成包, 官方网站: 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