PHPackages                             tinyphporg/tinyphp-framework-1.0 - 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. [Framework](/categories/framework)
4. /
5. tinyphporg/tinyphp-framework-1.0

ActiveProject[Framework](/categories/framework)

tinyphporg/tinyphp-framework-1.0
================================

A framework for php

1.0.0(3y ago)235Apache-2.0PHPPHP &gt;= 7.0.0

Since Sep 22Pushed 3y ago1 watchersCompare

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

READMEChangelog (1)DependenciesVersions (2)Used By (0)

TinyPHP For Framework-1.0
=========================

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

[简介](#%E7%AE%80%E4%BB%8B)

[框架安装](#%E5%AE%89%E8%A3%85)

[一键搭建lnmp运行环境](#%E4%B8%80%E9%94%AE%E6%90%AD%E5%BB%BAlnmp%E8%BF%90%E8%A1%8C%E7%8E%AF%E5%A2%83)

[框架编码规范](#%E6%A1%86%E6%9E%B6%E5%BC%80%E5%8F%91%E8%A7%84%E8%8C%83)

[一、PHP编码规范](#%E4%B8%80%E3%80%81PHP%E7%BC%96%E7%A0%81%E8%A7%84%E8%8C%83)

[SQL规范](#SQL%E8%A7%84%E8%8C%83)

简介
==

[](#简介)

一款经过生产环境检验(日PV10亿级)的轻量级PHP框架，此为1.0版本，高性能版本，毫秒级响应。

```
#支持Web和Console两种模式，单文件入口，自动识别web和cli环境，创建web下/console的application。
php index.php
```

支持Console环境下(主要适应于LINUX CENTOS 7)的Daemon守护进程模式。

```
   #实现了经典的Master-Worker模式。
   php index.php --id=tinyphp-daemon --daemon=start

   #可扩展为TCP服务端程序，定时器，IO异步事件驱动等模式，能够365xx24稳定运行。
```

支持一键打包成单文件可执行程序。

```
   #编译
   php index.php --build

   #运行生成的phar单文件程序
   php tinyphp-demo.phar
```

框架安装
====

[](#框架安装)

```
git clone https://github.com/tinyphporg/tinyphp-demo.git

cd tinyphp-demo

#兼容composer安装tinyphporg/tinyphp库
composer install tinyphporg/tinyphp-framework-1.0 @dev

#直接git下载
mkdir  lib/ && cd lib
git clone https://github.com/tinyphporg/tinyphp-demo.git

#运行
php index.php

#编译
php index.php --build

#开启守护进程
php index.php -d

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

一键搭建lnmp运行环境
============

[](#一键搭建lnmp运行环境)

lnmp-utils
==========

[](#lnmp-utils)

框架所在的生产环境 ,Linux(CentOS7X\_64) +openresty(nginx)+Mysql+PHP+Redis一键安装包.

项目地址:

CentOS 7x.x86\_64/生产环境
----------------------

[](#centos-7xx86_64生产环境)

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

```

框架开发规范
======

[](#框架开发规范)

一、PHP编码规范
---------

[](#一php编码规范)

> [第一章 文件结构](https://github.com/tinyphporg/tinyphp-framework-1.0/blob/master/docs/001-%E7%BC%96%E7%A0%81%E8%A7%84%E8%8C%83/001%E6%96%87%E4%BB%B6%E7%BB%93%E6%9E%84.md)

> [第二章 程序的排版](https://github.com/tinyphporg/tinyphp-framework-1.0/blob/master/docs/001-%E7%BC%96%E7%A0%81%E8%A7%84%E8%8C%83/002%E7%A8%8B%E5%BA%8F%E7%9A%84%E6%8E%92%E7%89%88.md)

> [第三章 命名规则](https://github.com/tinyphporg/tinyphp-framework-1.0/blob/master/docs/001-%E7%BC%96%E7%A0%81%E8%A7%84%E8%8C%83/003%E5%91%BD%E5%90%8D%E8%A7%84%E5%88%99.md)

> [第四章 表达式和基本语句](https://github.com/tinyphporg/tinyphp-framework-1.0/blob/master/docs/001-%E7%BC%96%E7%A0%81%E8%A7%84%E8%8C%83/004%E8%A1%A8%E8%BE%BE%E5%BC%8F%E5%92%8C%E5%9F%BA%E6%9C%AC%E8%AF%AD%E5%8F%A5.md)

> [第五章 常量](https://github.com/tinyphporg/tinyphp-framework-1.0/blob/master/docs/001-%E7%BC%96%E7%A0%81%E8%A7%84%E8%8C%83/005%E5%B8%B8%E9%87%8F.md)

> [第六章 函数设计](https://github.com/tinyphporg/tinyphp-framework-1.0/blob/master/docs/001-%E7%BC%96%E7%A0%81%E8%A7%84%E8%8C%83/006%E5%87%BD%E6%95%B0%E8%AE%BE%E8%AE%A1.md)

> [第七章 IDE的选择](https://github.com/tinyphporg/tinyphp-framework-1.0/blob/master/docs/001-%E7%BC%96%E7%A0%81%E8%A7%84%E8%8C%83/007IDE%E7%9A%84%E9%80%89%E6%8B%A9.md)

> [第八章 编码规范的一些示例](https://github.com/tinyphporg/tinyphp-framework-1.0/blob/master/docs/001-%E7%BC%96%E7%A0%81%E8%A7%84%E8%8C%83/008%E7%BC%96%E7%A0%81%E8%A7%84%E8%8C%83%E7%9A%84%E4%B8%80%E4%BA%9B%E7%A4%BA%E4%BE%8B.md)

二、SQL使用规范
---------

[](#二sql使用规范)

> [第一章 查询规范](https://github.com/tinyphporg/tinyphp-framework-1.0/blob/master/docs/002-SQL%E8%A7%84%E8%8C%83/001%E6%9F%A5%E8%AF%A2%E8%AF%AD%E5%8F%A5.md)

> [第二章 库和表的规范](https://github.com/tinyphporg/tinyphp-framework-1.0/blob/master/docs/002-SQL%E8%A7%84%E8%8C%83/002%E5%BA%93%E5%92%8C%E8%A1%A8%E7%9A%84%E8%A7%84%E8%8C%83.md)

> [第三章 数据库设计原则](https://github.com/tinyphporg/tinyphp-framework-1.0/blob/master/docs/002-SQL%E8%A7%84%E8%8C%83/003%E6%95%B0%E6%8D%AE%E5%BA%93%E8%AE%BE%E8%AE%A1%E5%8E%9F%E5%88%99.md)

> [第四章 数据库优化原则](https://github.com/tinyphporg/tinyphp-framework-1.0/blob/master/docs/002-SQL%E8%A7%84%E8%8C%83/004%E6%95%B0%E6%8D%AE%E5%BA%93%E4%BC%98%E5%8C%96%E5%8E%9F%E5%88%99.md)

三、框架使用手册
--------

[](#三框架使用手册)

> [第一章 框架入门](https://github.com/tinyphporg/tinyphp-framework-1.0/blob/master/manual/001%E6%A1%86%E6%9E%B6%E5%85%A5%E9%97%A8.md)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

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

1334d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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