Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

131 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TinyPHP Framework

中文

简介

一款轻量级、高性能的 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

运行环境

CentOS (生产环境)

依赖于 lnmp-utils: Linux (CentOS 7 X64) + OpenResty (Nginx) + MySQL + PHP + Redis 一键安装包。

项目地址: https://github.com/aigmlab/lnmp-utils

git clone https://github.com/aigmlab/lnmp-utils.git
cd ./lnmp-utils
./install.sh -m tinyphp
cd /data/web/tinyphp
php public/index.php

Docker (开发环境)

workspace=/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.1

Demo

composer 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

中文文档

框架使用手册

框架标准库参考


English

Overview

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

Related Projects

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

Environment

CentOS (Production)

git clone https://github.com/aigmlab/lnmp-utils.git
cd ./lnmp-utils
./install.sh -m tinyphp
cd /data/web/tinyphp
php public/index.php

Docker (Development)

workspace=/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.1

Quick Start

composer 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.php

Documentation

Full documentation is available at aigm/tinyphp-docs (Chinese).

See the 中文文档 section above for the complete manual and standard library reference.

About

一款基于敏捷开发理念的PHP MVC高性能框架,可基于集成的TinyPHP-UI前端组件库,快速开发响应式的WEB/H5应用。

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages