這裡先做個筆記 之後再來研究
Thank you for reading this post, don't forget to subscribe!https://gitee.com/zhongshaofa/easyadmin
http://easyadmin.99php.cn/docs/
注意一下 先執行 php -v
如果是 php56 則會下載thinkphp v5
如果是 php74 則會下載thinkphp v6
composer create-project --prefer-dist zhongshaofa/easyadmin xxmap_v3
composer create-project --prefer-dist zhongshaofa/easyadmin ezadmin
- Downloading zhongshaofa/easyadmin (v2.1.6)
Created project in /www/wwwroot/ezadmin
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Package operations: 40 installs, 0 updates, 0 removals
- Downloading mtdowling/jmespath.php (2.4.0)
- Downloading ralouphie/getallheaders (3.0.3)
- Downloading psr/http-message (1.0.1)
- Downloading guzzlehttp/psr7 (1.6.1)
- Downloading guzzlehttp/promises (v1.3.1)
- Downloading guzzlehttp/guzzle (6.4.1)
- Downloading symfony/polyfill-mbstring (v1.16.0)
- Downloading danielstjules/stringy (3.1.0)
- Downloading clagiordano/weblibs-configmanager (v1.0.7)
- Downloading adbario/php-dot-notation (2.2.0)
- Downloading alibabacloud/client (1.5.18)
- Downloading aliyuncs/oss-sdk-php (v2.3.0)
- Downloading doctrine/lexer (1.2.1)
- Downloading eaglewu/swoole-ide-helper (dev-master a255daa)
- Downloading guzzlehttp/command (1.0.0)
- Downloading psr/simple-cache (1.0.1)
- Downloading markbaker/matrix (1.2.0)
- Downloading markbaker/complex (1.4.8)
- Downloading phpoffice/phpspreadsheet (1.12.0)
- Downloading jianyan74/php-excel (1.0.1)
- Downloading psr/cache (1.0.1)
- Downloading league/flysystem (1.0.57)
- Downloading league/flysystem-cached-adapter (1.0.9)
- Downloading psr/container (1.0.0)
- Downloading guzzlehttp/guzzle-services (1.1.3)
- Downloading qcloud/cos-sdk-v5 (v2.0.3)
- Downloading qiniu/php-sdk (v7.2.10)
- Downloading symfony/polyfill-php72 (v1.12.0)
- Downloading symfony/var-dumper (v4.3.6)
- Downloading topthink/think-helper (v3.1.4)
- Downloading psr/log (1.1.2)
- Downloading topthink/think-orm (v2.0.27)
- Downloading topthink/framework (v6.0.8)
- Downloading topthink/think-captcha (v3.0.2)
- Downloading topthink/think-multi-app (v1.0.11)
- Downloading topthink/think-template (v2.0.7)
- Downloading topthink/think-view (v1.0.13)
- Downloading doctrine/annotations (1.13.2)
- Downloading zhongshaofa/easy-admin (v1.0.2)
- Downloading zhongshaofa/thinkphp-log-trace (v1.0.1)
cd xxmap_v3
composer update
### install think-trace
composer require topthink/think-trace
### install thinkphp6 phpexcel
composer require phpoffice/phpexcel
### install curl
composer require curl/curl
建立console mode 如果沒有在php think找到建立的command
可以執行 php think clear
另一套 使用thinkphp6 + Bootstrap
https://siyucms.com/
### 原始碼
https://gitee.com/ruoshuiyx/tp6
### 文件
https://www.kancloud.cn/ruoshuiyx/siyucms/910286
還有一套 好像很利害
https://github.com/zoujingli/ThinkAdmin
框架指令
執行 php think run 啟用本地開發環境,訪問 http://127.0.0.1:8000
執行 php think xadmin:package 將現有 MySQL 數據庫打包為 Phinx 數據庫腳本
執行 php think xadmin:sysmenu 重寫系統菜單並生成新編號,同時會清理已禁用的菜單數據
執行 php think xadmin:fansall 同步微信粉絲數據,依賴於 ThinkPlugsWechat 應用插件
執行 php think xadmin:replace 可以批量替換數據庫指定字符字段內容,通常用於文件地址替換
執行 php think xadmin:database 對數據庫的所有表 repair|optimize 操作,優化並整理數據庫碎片
執行 php think xadmin:publish 可自動安裝現在模塊或已安裝應用插件,增加 --migrate 參數執行數據庫腳本
1. 守護進程管理(可自建定時任務去守護監聽主進程)
執行 php think xadmin:queue listen [監聽]啟動異步任務監聽服務
執行 php think xadmin:queue start [控制]檢查創建任務監聽服務(建議定時任務執行)
執行 php think xadmin:queue query [控制]查詢當前任務相關的進程
執行 php think xadmin:queue status [控制]查看異步任務監聽狀態
執行 php think xadmin:queue stop [控制]平滑停止所有任務進程
2. 本地調試管理(可自建定時任務去守護監聽主進程)
執行 php think xadmin:queue webstop [調試]停止本地調試服務
執行 php think xadmin:queue webstart [調試]開啟本地調試服務(建議定時任務執行)
執行 php think xadmin:queue webstatus [調試]查看本地調試狀態