一款轻量级、高性能的 PHP MVC 框架,经过日 PV 十亿级别的生产环境检验。
- 主要应用于分布式、高并发的生产环境
- 适应于多人团队协作
- 支持多环境和分布式处理
- 适用于 Web / Console / RPC 等运行环境,包括单一命令行文件打包,多任务的服务端守护进程等
| 项目 | 说明 | 地址 |
|---|---|---|
| tinyphp | Demo 项目 | github.com/aigmlab/tinyphp |
| tinyphp-docs | 中文文档 | github.com/aigmlab/tinyphp-docs |
| tinyphp-ui | UI 组件库 | github.com/aigmlab/tinyphp-ui |
依赖于 lnmp-utils: Linux (CentOS 7 X64) + OpenResty (Nginx) + MySQL + PHP + Redis 一键安装包。
git clone https://github.com/aigmlab/lnmp-utils.git
cd ./lnmp-utils
./install.sh -m tinyphp
cd /data/web/tinyphp
php public/index.phpworkspace=/data/workspace/tinyphp
docker pull centos:7
docker run -d -p 80:80 -p 10022:22 \
-v $workspace:/data/web/tinyphp \
--name="tinyphp" --hostname="tinyphp" --restart=always \
centos:7 /sbin/init
docker exec -it tinyphp /bin/bash
git clone https://github.com/aigmlab/lnmp-utils.git
cd ./lnmp-utils
./install.sh -m tinyphp-bootstrap
curl http://127.0.0.1composer create-project aigm/tinyphp
cd tinyphp
# 运行
php public/index.php
# 编译
php public/index.php --build
# 开启守护进程
php public/index.php -d
# 编辑配置文件
vi application/config/profile.php- Tiny: 工具包
- Tiny\Runtime: 运行时
- Tiny\Build: 打包
- Tiny\Cache: 缓存
- Tiny\Config: 配置
- Tiny\Console: 命令行
- Tiny\Data: 数据层
- Tiny\Filter: 过滤器
- Tiny\Image: 图片处理
- Tiny\Lang: 语言包
- Tiny\Log: 日志处理
- Tiny\MVC: MVC
- Tiny\Net: 网络
- Tiny\String: 字符处理
A lightweight and high-performance PHP MVC framework, battle-tested at 1+ billion daily PV in production.
- Designed for distributed, high-concurrency production environments
- Suitable for multi-developer team collaboration
- Supports multi-environment and distributed processing
- Works with Web, Console, and RPC runtimes; supports single-file packaging and daemon processes
| Project | Description | URL |
|---|---|---|
| tinyphp | Demo project | github.com/aigmlab/tinyphp |
| tinyphp-docs | Documentation (Chinese) | github.com/aigmlab/tinyphp-docs |
| tinyphp-ui | UI component library | github.com/aigmlab/tinyphp-ui |
git clone https://github.com/aigmlab/lnmp-utils.git
cd ./lnmp-utils
./install.sh -m tinyphp
cd /data/web/tinyphp
php public/index.phpworkspace=/data/workspace/tinyphp
docker pull centos:7
docker run -d -p 80:80 -p 10022:22 \
-v $workspace:/data/web/tinyphp \
--name="tinyphp" --hostname="tinyphp" --restart=always \
centos:7 /sbin/init
docker exec -it tinyphp /bin/bash
git clone https://github.com/aigmlab/lnmp-utils.git
cd ./lnmp-utils && ./install.sh -m tinyphp-bootstrap
curl http://127.0.0.1composer create-project aigm/tinyphp
cd tinyphp
# Run
php public/index.php
# Build single file
php public/index.php --build
# Start daemon
php public/index.php -d
# Edit config
vi application/config/profile.phpFull documentation is available at aigm/tinyphp-docs (Chinese).
See the 中文文档 section above for the complete manual and standard library reference.