#### 1. 前言 --- 每次創(chuàng)建一個 TP6.0 新項目時,都要去翻文檔找安裝框架和擴展包的命令 本文記錄一下,方便以后復(fù)制粘貼。也許此時你會想,我怎么會這么懶,嗯,沒錯,就是這么懶 #### 2. 下載 TP6.0 框架的最新正式版 --- TP3、TP5 可以在官網(wǎng)、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 ``` + 多應(yīng)用模式擴展 ``` composer require topthink/think-multi-app ``` + 視圖驅(qū)動擴展 ``` composer require topthink/think-view ``` + 驗證碼擴展 ``` composer require topthink/think-captcha ``` + 消息隊列擴展 ``` composer require topthink/think-queue ``` #### 4. 常用擴展包推薦 --- 微信開發(fā)工具包,集成微信公眾號、微信小程序、微信開放平臺、微信支付等功能, 官網(wǎng): [https://www.easywechat.com](https://www.easywechat.com) ``` composer require overtrue/wechat:~4.0 -vvv ``` 微信支付、支付寶支付集成包, 官方網(wǎng)站: [https://pay.yansongda.cn](https://pay.yansongda.cn) ``` composer require yansongda/pay ``` 生成二維碼擴展包 ``` composer require endroid/qr-code ``` Json Web Token(jwt鑒權(quán)擴展包) ``` composer require firebase/php-jwt ``` PHP操作Excel表格擴展包: 導(dǎo)出 Excel 表格,Excel 表格數(shù)據(jù)入庫 ``` composer require phpoffice/phpexcel composer require phpoffice/phpspreadsheet ```