ThinkPHP Framework https://github.com/top-think/framework
liuyuqi-dellpc a480ab1d36 Automatic Commit By liuyuqi | 6 months ago | |
---|---|---|
.ide | 6 months ago | |
api | 6 months ago | |
app | 6 months ago | |
data | 6 months ago | |
deploy | 6 months ago | |
public | 6 months ago | |
.coding-ci.yml | 6 months ago | |
.example.env | 6 months ago | |
.gitignore | 6 months ago | |
LICENSE | 6 months ago | |
README.md | 6 months ago | |
composer.json | 6 months ago | |
composer.lock | 6 months ago | |
docker-compose.debug.yml | 6 months ago | |
think | 6 months ago | |
version | 6 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