PHPackages                             nandiao/thinkphp - 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. nandiao/thinkphp

ActiveLibrary[Framework](/categories/framework)

nandiao/thinkphp
================

The ThinkPHP Framework.

v6.1.1(3y ago)04Apache-2.0PHPPHP &gt;=7.2.5

Since Jan 30Pushed 3y agoCompare

[ Source](https://github.com/nandiao/thinkphp)[ Packagist](https://packagist.org/packages/nandiao/thinkphp)[ Docs](http://thinkphp.cn/)[ RSS](/packages/nandiao-thinkphp/feed)WikiDiscussions 6.1 Synced 1mo ago

READMEChangelogDependencies (10)Versions (109)Used By (0)

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

ThinkPHP 6.1
============

[](#thinkphp-61)

[![Build Status](https://camo.githubusercontent.com/a12a8b683a45919e3a4faa8fb669d230ef8160eb94e7e9975853fd1ee0c1886c/68747470733a2f2f7472617669732d63692e6f72672f746f702d7468696e6b2f6672616d65776f726b2e7376673f6272616e63683d362e30)](https://travis-ci.org/top-think/framework)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/db5aba5a8e655227bf5a1ee1f79ea88becd0fe5ebcb266b52494507ae22177c4/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f746f702d7468696e6b2f6672616d65776f726b2f6261646765732f7175616c6974792d73636f72652e706e673f623d362e30)](https://scrutinizer-ci.com/g/top-think/framework/?branch=6.0)[![Code Coverage](https://camo.githubusercontent.com/5f4a5411839b0ff33e2a42c04b2cdec59d8f200f95b8809dcd2ecc8ae28048a1/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f746f702d7468696e6b2f6672616d65776f726b2f6261646765732f636f7665726167652e706e673f623d362e30)](https://scrutinizer-ci.com/g/top-think/framework/?branch=6.0)[![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/a36ed93e60420b5782989c6c5834d9b2085aab7c1a99bc36751792706a2f0b83/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344372e312d3838393242462e737667)](http://www.php.net/)[![License](https://camo.githubusercontent.com/0f43fddc07ecf7a85a9c76f8ef282e678ca990e7d1dd474b37cc314de6e596dd/68747470733a2f2f706f7365722e707567782e6f72672f746f707468696e6b2f6672616d65776f726b2f6c6963656e7365)](https://packagist.org/packages/topthink/framework)

[官方服务](https://www.topthink.com) | [`ThinkAPI`——官方统一API](https://doc.topthink.com/think-api)

主要新特性
-----

[](#主要新特性)

- 采用`PHP7`强类型（严格模式）
- 支持更多的`PSR`规范
- 原生多应用支持
- 系统服务注入支持
- ORM作为独立组件使用
- 全新的事件系统
- 模板引擎分离出核心
- 内部功能中间件化
- SESSION机制改进
- 日志多通道支持
- 规范扩展接口
- 更强大的控制台
- 对Swoole以及协程支持改进
- 对IDE更加友好
- 统一和精简大量用法

> ThinkPHP6.1的运行环境要求PHP7.2.5+，最高兼容PHP8.2

安装
--

[](#安装)

```
composer create-project topthink/think tp

```

启动服务

```
cd tp
php think run

```

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

```
http://localhost:8000

```

如果需要更新框架使用

```
composer update topthink/framework

```

文档
--

[](#文档)

[完全开发手册](https://www.kancloud.cn/manual/thinkphp6_0/content)

命名规范
----

[](#命名规范)

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

参与开发
----

[](#参与开发)

直接提交PR或者Issue即可

版权信息
----

[](#版权信息)

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

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

版权所有Copyright © 2006-2021 by ThinkPHP () All rights reserved。

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

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

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor1

Top contributor holds 86.6% 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 ~23 days

Total

108

Last Release

1226d ago

Major Versions

v5.1.39 → v6.0.12019-12-24

v5.1.40 → v6.0.52020-10-26

v5.1.41 → v6.0.72021-01-25

v5.1.42 → v6.1.12022-10-26

5.1.x-dev → 6.1.x-dev2023-01-08

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

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

v5.2-beta.2PHP &gt;=7.1.0

v6.0.9PHP &gt;=7.2.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/9b29f33593c7eb959cc476550ebd5867b26a1294447d35470ea2b8995abb098f?d=identicon)[nandiao](/maintainers/nandiao)

---

Top Contributors

[![liu21st](https://avatars.githubusercontent.com/u/1111670?v=4)](https://github.com/liu21st "liu21st (4985 commits)")[![yunwuxin](https://avatars.githubusercontent.com/u/2168125?v=4)](https://github.com/yunwuxin "yunwuxin (252 commits)")[![huangdijia](https://avatars.githubusercontent.com/u/8337659?v=4)](https://github.com/huangdijia "huangdijia (129 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)")[![hongweipeng](https://avatars.githubusercontent.com/u/7546325?v=4)](https://github.com/hongweipeng "hongweipeng (25 commits)")[![Lofanmi](https://avatars.githubusercontent.com/u/3463580?v=4)](https://github.com/Lofanmi "Lofanmi (23 commits)")[![big-dream](https://avatars.githubusercontent.com/u/9215157?v=4)](https://github.com/big-dream "big-dream (20 commits)")[![NHZEX](https://avatars.githubusercontent.com/u/14545600?v=4)](https://github.com/NHZEX "NHZEX (17 commits)")[![pwf0112](https://avatars.githubusercontent.com/u/6256668?v=4)](https://github.com/pwf0112 "pwf0112 (14 commits)")[![luofei614](https://avatars.githubusercontent.com/u/1470647?v=4)](https://github.com/luofei614 "luofei614 (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)")[![zzpuser](https://avatars.githubusercontent.com/u/8605106?v=4)](https://github.com/zzpuser "zzpuser (8 commits)")[![liuzhaowei55](https://avatars.githubusercontent.com/u/1835787?v=4)](https://github.com/liuzhaowei55 "liuzhaowei55 (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)")[![leunggamciu](https://avatars.githubusercontent.com/u/1306857?v=4)](https://github.com/leunggamciu "leunggamciu (6 commits)")[![4352570](https://avatars.githubusercontent.com/u/51403503?v=4)](https://github.com/4352570 "4352570 (6 commits)")

---

Tags

frameworkormthinkphp

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nandiao-thinkphp/health.svg)

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

###  Alternatives

[cakephp/cakephp

The CakePHP framework

8.8k18.5M1.6k](/packages/cakephp-cakephp)[laravel/framework

The Laravel Framework.

34.6k509.9M17.0k](/packages/laravel-framework)[symfony/symfony

The Symfony PHP framework

31.3k86.3M2.2k](/packages/symfony-symfony)[topthink/framework

The ThinkPHP Framework.

2.8k3.2M1.3k](/packages/topthink-framework)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)

PHPackages © 2026

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