PHPackages                             shuliuzhenhua/framework - 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. shuliuzhenhua/framework

ActiveThink-framework[Framework](/categories/framework)

shuliuzhenhua/framework
=======================

the new thinkphp framework

v5.1.31(7y ago)01Apache-2.0PHPPHP &gt;=5.6.0

Since Jan 30Pushed 7y agoCompare

[ Source](https://github.com/shuliuzhenhua/framework)[ Packagist](https://packagist.org/packages/shuliuzhenhua/framework)[ Docs](http://thinkphp.cn/)[ RSS](/packages/shuliuzhenhua-framework/feed)WikiDiscussions 5.1 Synced 2d ago

READMEChangelog (1)Dependencies (8)Versions (85)Used By (0)

[![](https://camo.githubusercontent.com/3c1a0317ee5a94af211fecd0e038e6471ca1c9be462eee74f0016f24e62d296b/68747470733a2f2f626f782e6b616e636c6f75642e636e2f3561306161613639613566663432363537623563343731356633643439323231)](https://camo.githubusercontent.com/3c1a0317ee5a94af211fecd0e038e6471ca1c9be462eee74f0016f24e62d296b/68747470733a2f2f626f782e6b616e636c6f75642e636e2f3561306161613639613566663432363537623563343731356633643439323231)

ThinkPHP 5.1（LTS） —— 12载初心，你值得信赖的PHP框架
======================================

[](#thinkphp-51lts--12载初心你值得信赖的php框架)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/571a6fe933d1ec5b4ac81f9321be67a60d297225f7f8fc898ad366f780300a72/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f746f702d7468696e6b2f6672616d65776f726b2f6261646765732f7175616c6974792d73636f72652e706e673f623d352e31)](https://scrutinizer-ci.com/g/top-think/framework/?branch=5.1)[![Build Status](https://camo.githubusercontent.com/29ece23cb91e7cb552c6ce97968b264470afcc509366ce9ce9f16ad571ba0194/68747470733a2f2f7472617669732d63692e6f72672f746f702d7468696e6b2f6672616d65776f726b2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/top-think/framework)[![Total Downloads](https://camo.githubusercontent.com/818487331147fd20e8c4016c154832dd29db27d0b2033bddbad1a2bab6b0d766/68747470733a2f2f706f7365722e707567782e6f72672f746f707468696e6b2f6672616d65776f726b2f646f776e6c6f616473)](https://packagist.org/packages/topthink/framework)[![Latest Stable Version](https://camo.githubusercontent.com/1993beb2fc9ac531bda02b3b3bfe11430ef7712b3095c65cd2e55c859a5ebce3/68747470733a2f2f706f7365722e707567782e6f72672f746f707468696e6b2f6672616d65776f726b2f762f737461626c65)](https://packagist.org/packages/topthink/framework)[![PHP Version](https://camo.githubusercontent.com/132eb2fad8bc173f1489c3481e81763d1a02b392a4e55bd35eb0a1fc8b5d1ee5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344352e362d3838393242462e737667)](http://www.php.net/)[![License](https://camo.githubusercontent.com/0f43fddc07ecf7a85a9c76f8ef282e678ca990e7d1dd474b37cc314de6e596dd/68747470733a2f2f706f7365722e707567782e6f72672f746f707468696e6b2f6672616d65776f726b2f6c6963656e7365)](https://packagist.org/packages/topthink/framework)

ThinkPHP5.1对底层架构做了进一步的改进，减少依赖，其主要特性包括：

- 采用容器统一管理对象
- 支持Facade
- 更易用的路由
- 注解路由支持
- 路由跨域请求支持
- 验证类增强
- 配置和路由目录独立
- 取消系统常量
- 类库别名机制
- 模型和数据库增强
- 依赖注入完善
- 支持PSR-3日志规范
- 中间件支持（`V5.1.6+`）
- 支持`Swoole`/`Workerman`运行（`V5.1.18+`）

官方已经正式宣布`5.1.27`版本为LTS版本。

### 废除的功能：

[](#废除的功能)

- 聚合模型
- 内置控制器扩展类
- 模型自动验证

> ThinkPHP5.1的运行环境要求PHP5.6+。

安装
--

[](#安装)

使用composer安装

```
composer create-project topthink/think tp

```

启动服务

```
cd tp
php think run

```

然后就可以在浏览器中访问

```
http://localhost:8000

```

更新框架

```
composer update topthink/framework

```

在线手册
----

[](#在线手册)

- [完全开发手册](https://www.kancloud.cn/manual/thinkphp5_1/content)
- [升级指导](https://www.kancloud.cn/manual/thinkphp5_1/354155)

命名规范
----

[](#命名规范)

`ThinkPHP5.1`遵循PSR-2命名规范和PSR-4自动加载规范。

参与开发
----

[](#参与开发)

请参阅 [ThinkPHP5 核心框架包](https://github.com/top-think/framework)。

版权信息
----

[](#版权信息)

ThinkPHP遵循Apache2开源协议发布，并提供免费使用。

本项目包含的第三方源码和二进制文件之版权信息另行标注。

版权所有Copyright © 2006-2018 by ThinkPHP ()

All rights reserved。

ThinkPHP® 商标和著作权所有者为上海顶想信息科技有限公司。

更多细节参阅 [LICENSE.txt](LICENSE.txt)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 87.8% 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

Every ~16 days

Recently: every ~6 days

Total

65

Last Release

2728d ago

PHP version history (3 changes)5.0-rc1PHP &gt;=5.4.0

v5.1-beta.1PHP &gt;=5.6.0

5.2.x-devPHP &gt;=7.1.0

### Community

Maintainers

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

---

Top Contributors

[![liu21st](https://avatars.githubusercontent.com/u/1111670?v=4)](https://github.com/liu21st "liu21st (4169 commits)")[![huangdijia](https://avatars.githubusercontent.com/u/8337659?v=4)](https://github.com/huangdijia "huangdijia (129 commits)")[![yunwuxin](https://avatars.githubusercontent.com/u/2168125?v=4)](https://github.com/yunwuxin "yunwuxin (103 commits)")[![Aoiujz](https://avatars.githubusercontent.com/u/1740624?v=4)](https://github.com/Aoiujz "Aoiujz (72 commits)")[![kinosang](https://avatars.githubusercontent.com/u/4987102?v=4)](https://github.com/kinosang "kinosang (64 commits)")[![vus520](https://avatars.githubusercontent.com/u/2123561?v=4)](https://github.com/vus520 "vus520 (32 commits)")[![Lofanmi](https://avatars.githubusercontent.com/u/3463580?v=4)](https://github.com/Lofanmi "Lofanmi (23 commits)")[![hongweipeng](https://avatars.githubusercontent.com/u/7546325?v=4)](https://github.com/hongweipeng "hongweipeng (20 commits)")[![luofei614](https://avatars.githubusercontent.com/u/1470647?v=4)](https://github.com/luofei614 "luofei614 (14 commits)")[![pwf0112](https://avatars.githubusercontent.com/u/6256668?v=4)](https://github.com/pwf0112 "pwf0112 (14 commits)")[![shuipf](https://avatars.githubusercontent.com/u/2285144?v=4)](https://github.com/shuipf "shuipf (11 commits)")[![jasonencode](https://avatars.githubusercontent.com/u/2210843?v=4)](https://github.com/jasonencode "jasonencode (10 commits)")[![liuzhaowei55](https://avatars.githubusercontent.com/u/1835787?v=4)](https://github.com/liuzhaowei55 "liuzhaowei55 (8 commits)")[![zzpuser](https://avatars.githubusercontent.com/u/8605106?v=4)](https://github.com/zzpuser "zzpuser (8 commits)")[![yangweijie](https://avatars.githubusercontent.com/u/1614114?v=4)](https://github.com/yangweijie "yangweijie (7 commits)")[![Vancels](https://avatars.githubusercontent.com/u/22853197?v=4)](https://github.com/Vancels "Vancels (7 commits)")[![iiQi](https://avatars.githubusercontent.com/u/3948037?v=4)](https://github.com/iiQi "iiQi (6 commits)")[![leunggamciu](https://avatars.githubusercontent.com/u/1306857?v=4)](https://github.com/leunggamciu "leunggamciu (6 commits)")[![oldrind](https://avatars.githubusercontent.com/u/7350831?v=4)](https://github.com/oldrind "oldrind (6 commits)")[![hugtale](https://avatars.githubusercontent.com/u/7259708?v=4)](https://github.com/hugtale "hugtale (5 commits)")

---

Tags

frameworkormthinkphp

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/shuliuzhenhua-framework/health.svg)

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

PHPackages © 2026

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