ThinkPHP Framework https://github.com/top-think/framework
liuyuqi-dellpc a480ab1d36 Automatic Commit By liuyuqi | 7 months ago | |
---|---|---|
.ide | 7 months ago | |
api | 7 months ago | |
app | 7 months ago | |
data | 7 months ago | |
deploy | 7 months ago | |
public | 7 months ago | |
.coding-ci.yml | 7 months ago | |
.example.env | 7 months ago | |
.gitignore | 7 months ago | |
LICENSE | 7 months ago | |
README.md | 7 months ago | |
composer.json | 7 months ago | |
composer.lock | 7 months ago | |
docker-compose.debug.yml | 7 months ago | |
think | 7 months ago | |
version | 7 months ago |
ThinkPHP6.0的运行环境要求PHP7.2+,兼容PHP8.1
mysql8
mkdir -p php-demo
chmod 777 php-demo && cd php-demo
# 先启动 mysql
docker compose -f "docker-compose.debug.yml" up -d --build
# 配置 mysql 连接
docker run --rm -it -w /var/www/html -v $(pwd):/var/www/html -p 8000:8000 --network=workspace_db_network sineverba/php8xc:1.18.0 /bin/bash
# 创建项目
composer create-project thinkcmf/thinkcmf .
# 更新
composer update topthink/framework
# 启动项目
php think run
docker run --rm -it -v $(pwd):/app -p 8000:8000 bitnami/laravel:latest
然后就可以在浏览器中访问
http://localhost:8000
tp3.2 版本,只支持 php5.6,不在维护 . 旧项目手动升级到新版本。
Apache 2.0
地址 https://github.com/top-think/thinkphp 已迁移到 https://github.com/top-think/framework