PHPackages                             tinyphporg/tinyphp-docs - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. tinyphporg/tinyphp-docs

ActiveLibrary

tinyphporg/tinyphp-docs
=======================

tinyphp-framework v2.0的中文文档

2.0.0(3y ago)0941Apache-2.0PHPPHP &gt;=7.3.0

Since Nov 23Pushed 3y ago1 watchersCompare

[ Source](https://github.com/tinyphporg/tinyphp-docs)[ Packagist](https://packagist.org/packages/tinyphporg/tinyphp-docs)[ RSS](/packages/tinyphporg-tinyphp-docs/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (2)Used By (1)

TinyPHP Framework for PHP
=========================

[](#tinyphp-framework-for-php)

tinyphp v2.0.0
--------------

[](#tinyphp-v200)

- 基于tinyphp framework v2.0.0

> 经过日PV十亿级别生产环境检验；
> 应用于高并发高性能的生产环境； 支持分布式的RPC微服务处理；
> 适用于 Web/Console/RPC等运行环境，包括单一命令行文件打包，多任务的服务端守护进等。

tinyphp-framework的适用场景与理念
-------------------------

[](#tinyphp-framework的适用场景与理念)

- 客户端应用(IOS/Android/H5/小程序)的API接口开发：

    - 高性能，大并发。
    - 快速开发。
    - 支持分布式RPC微服务架构。
- Web管理后台：

    - 适用于PHP全栈工程师，及不具备UI设计师和前端工程师的研发团队。
    - 集成了tinyphp-ui前端框架，只需少量的JS前端代码。
- 大规模团队协作：

    - 10-100+人以上的研发团队。
    - 创业团队，产品快速成型，可在较少的研发人力成本下进行高效的敏捷开发。
    - 适用于具备在大规模的高性能应用场景下，通过PHP解决大多数复杂业务的架构。
    - 可将大规模复杂应用的后端语言有效控制为PHP一种后端开发语言，有效降低项目维护成本和团队管理难度。

快速开始
----

[](#快速开始)

```
composer create-project tinyphporg/tinyphp

#console 运行
php public/index.php

#编译单文件
php public/index.php --build

#服务端守护进程
php public/index.php -d  //开启
php public/index.php --daemon=stop  //关闭

#配置文件
application/config/profile.php
```

核心组件
====

[](#核心组件)

### tinyphp-framework v2.0

[](#tinyphp-framework-v20)

- 框架地址：

### tinyphp-docs

[](#tinyphp-docs)

- 中文文档: 使用手册、标准库。
- 项目地址: [https://github.com//tinyphp-docs](https://github.com/tinyphporg/tinyphp-docs)

### tinyphp-ui

[](#tinyphp-ui)

- 前端UI组件库: webpack5+bootstrap5+jquery...
- 项目地址： :

### lnmp-utils

[](#lnmp-utils)

- Linux(CentOS7X\_64) +openresty(nginx)+Mysql+PHP+Redis一键安装包, 适用于生产环境。
- 项目地址:

快速构建运行环境
--------

[](#快速构建运行环境)

### CentOS X64 7.4+

[](#centos-x64-74)

> 适应于生产环境，依赖于lnmp-utils。
> lnmp-utils: Linux(CentOS7X\_64) +openresty(nginx)+Mysql+PHP+Redis一键安装包。
> 项目地址:

```
git clone https://github.com/tinyphporg/lnmp-utils.git
cd ./lnmp-utils
./install.sh -m tinyphp
```

### docker

[](#docker)

> 适应于开发环境

```
#可更改/data/workspace/tinyphp为自定义IDE工作目录
workspace=/data/workspace/

docker pull centos:7
docker run -d -p 80:80 -p 3306:3306 -p 8080:8080 -p 8989:8989 -p 10022:22 -v $workspace:/data/web  --name="tinyphp" --hostname="tinyphp" --restart=always -w /data/worksapce/ centos:7 /sbin/init

#port 8080
#   用于tinyphporg/tinyphp-ui调试
# npm run dev

#port 8989
#    用于tinyphporg/tinyphp-ui打包详情查看
# npm run build

docker exec -it tinyphp /bin/bash

git clone https://github.com/tinyphporg/lnmp-utils.git
cd ./lnmp-utils
./install.sh

cd /data/web/tinyphporg/tinyphp
php public/index.php
```

中文手册
----

[](#中文手册)

> 本框架的编码规范遵守PSR规范标准，仅少数细节做灵活调整。

- [环境搭建/lnmp-utils: http://github.com/tinyphporg/lnmp-utils.git](http://github.com/tinyphporg/lnmp-utils.git)
- [Demo/tinyphp: http://github.com/tinyphporg/tinyphp.git](http://github.com/tinyphporg/tinyphp.git)
- 编码规范

    - [文件结构](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/standard/coding_file.md)
    - [程序的排版](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/standard/coding_program_typesetting.md)
    - [命名规则](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/standard/coding_rules.md)
    - [表达式和基本语句](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/standard/coding_expression.md)
    - [常量](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/standard/coding/constant.md)
    - [函数设计](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/standard/coding/function.md)
    - [IDE的选择](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/standard/coding_ide.md)
    - [编码规范的一些示例](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/standard/coding_example.md)
- 数据库查询/设计/操作规范

    - [查询规范](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/standard/db_select.md)
    - [库和表的规范](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/standard/db_dbtable.md)
    - [数据库设计原则](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/standard/db_design.md)
    - [数据库的配置优化](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/standard/db_optimization.md)
- [团队协作规范](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/standard/team.md)
- 框架使用手册

    - [Index/入口文件: public/index.php](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/manual/index.md)
    - [Runtime/运行时环境: runtime/](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/manual/runtime.md)
        - [Environment/运行时环境参数](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/manual/runtime_env.md)
        - [ExceptionHandler/异常处理](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/manual/runtime_exception.md)
        - [Autoloader/自动加载](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/manual/runtime_autoloader.md)
        - [Container/容器](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/manual/runtime_container.md)
        - [EventManager/事件管理](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/manual/runtime_event.md)
    - [Application/应用程序: application/](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/manual/application.md)
        - [Proptrites/Application配置文件:application/config/profile.php](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/manual/profile.md)
        - [Debug/调试模式配置](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/manual/debug.md)
        - [Bootstrap/引导程序配置:application/events/Bootstrap.php](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/manual/bootstrap.md)
        - [Lang/语言包配置:application/lang](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/manual/lang.md)
        - [Data/数据源配置:/application/data](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/manual/data.md)
        - [Cache/缓存配置:runtime/cache](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/manual/cache.md)
        - [Logger/日志收集配置:runtime/log](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/manual/logger.md)
        - [Configuration/配置类配置](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/manual/configuration.md)
        - [Builder/打包单文件的配置](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/manual/builder.md)
        - [Daemon/守护进程配置](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/manual/daemon.md)
        - [Filter/过滤器配置](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/manual/filter.md)
        - [MVC/Event/事件配置](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/manual/mvc_event.md)
        - [MVC/Controller/控制器配置:application/controllers/](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/manual/mvc_controller.md)
        - [MVC/Model/模型配置:application/models/](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/manual/mvc_model.md)
        - [MVC/Viewer/视图配置:application/views/](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/manual/mvc_viewer.md)
        - [MVC/Router/路由器配置](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/manual/mvc_router.md)
        - [MVC/Controller/Dispatcher/派发器配置](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/manual/mvc_dispatcher.md)
        - [MVC/Request/请求](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/manual/mvc_request.md)
        - [MVC/Response/响应](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/manual/mvc_response.md)
        - [MVC/Web/HttpCookie](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/manual/mvc_cookie.md)
        - [Mvc/Web/HttpSession](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/manual/mvc_session.md)
- 框架标准库参考

    - [Tiny：工具包](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/lib/tiny.md)
    - [Tiny\\Runtime：运行时](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/lib/runtime.md)
    - [Tiny\\Build：打包](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/lib/build.md)
    - [Tiny\\Cache：缓存](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/lib/cache.md)
    - [Tiny\\Config：配置](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/lib/config.md)
    - [Tiny\\Console：命令行](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/lib/console.md)
    - [Tiny\\Data：数据层](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/lib/data.md)
    - [Tiny\\DI：依赖注入](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/lib/di.md)
    - [Tiny\\Event：事件](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/lib/event.md)
    - [Tiny\\Filter：过滤器](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/lib/filter.md)
    - [Tiny\\Image：图片处理](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/lib/image.md)
    - [Tiny\\Lang：语言包](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/lib/lang.md)
    - [Tiny\\Log：日志处理](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/lib/log.md)
    - [Tiny\\MVC：MVC](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/lib/mvc.md)
    - [Tiny\\Net：网络](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/lib/net.md)
    - [Tiny\\String：字符处理](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/lib/string.md)
- [UI库参考](https://github.com/tinyphporg/tinyphp-docs/blob/master/docs/ui/)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1273d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cf70d29ab0374397ae997ff1eeb8aaa7ed0cd53fa9e9ea15bddeff57a2016aa8?d=identicon)[tinyphp](/maintainers/tinyphp)

![](https://www.gravatar.com/avatar/ce599c3c5b75cab941a16336bc1818d6d91ecbf470d4ea79a1028634229caae2?d=identicon)[opensaas](/maintainers/opensaas)

---

Top Contributors

[![aigameism](https://avatars.githubusercontent.com/u/5679933?v=4)](https://github.com/aigameism "aigameism (267 commits)")

---

Tags

php7php8tinyphp-frameworktinyphp-ui

### Embed Badge

![Health badge](/badges/tinyphporg-tinyphp-docs/health.svg)

```
[![Health](https://phpackages.com/badges/tinyphporg-tinyphp-docs/health.svg)](https://phpackages.com/packages/tinyphporg-tinyphp-docs)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
