PHPackages                             topthink/think - 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. topthink/think

ActiveProject[Framework](/categories/framework)

topthink/think
==============

the new thinkphp framework

v8.1.3(10mo ago)8.0k1.2M↑26.3%1.6k[123 issues](https://github.com/top-think/think/issues)[1 PRs](https://github.com/top-think/think/pulls)13Apache-2.0PHPPHP &gt;=8.0.0

Since Jan 30Pushed 10mo ago420 watchersCompare

[ Source](https://github.com/top-think/think)[ Packagist](https://packagist.org/packages/topthink/think)[ Docs](https://www.thinkphp.cn/)[ RSS](/packages/topthink-think/feed)WikiDiscussions 8.x Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (85)Used By (13)Security (2)

[![](https://camo.githubusercontent.com/34ac28aea181fba2316e3aa9516a6f05004204527e32cf7532168b568a397a04/68747470733a2f2f7777772e7468696e6b7068702e636e2f75706c6f6164732f696d616765732f32303233303633302f33303063383536373635616634643861653735386335303331383566383733392e706e67)](https://camo.githubusercontent.com/34ac28aea181fba2316e3aa9516a6f05004204527e32cf7532168b568a397a04/68747470733a2f2f7777772e7468696e6b7068702e636e2f75706c6f6164732f696d616765732f32303233303633302f33303063383536373635616634643861653735386335303331383566383733392e706e67)

ThinkPHP 8
==========

[](#thinkphp-8)

特性
--

[](#特性)

- 基于PHP`8.0+`重构
- 升级`PSR`依赖
- 依赖`think-orm`3.0+版本
- 全新的`think-dumper`服务，支持远程调试
- 支持`6.0`/`6.1`无缝升级

> ThinkPHP8的运行环境要求PHP8.0+

现在开始，你可以使用官方提供的[ThinkChat](https://chat.topthink.com/)，让你在学习ThinkPHP的旅途中享受私人AI助理服务！

[![](https://camo.githubusercontent.com/6a86ae00932359642f7b4b40a41ddd84e4deae3d9c5dfcab9fdabb93d8018b37/68747470733a2f2f7777772e746f707468696e6b2e636f6d2f75706c6f6164732f617373697374616e742f32303233303633302f34643161336630616432393538623439626238313839623765663832346362302e706e67)](https://camo.githubusercontent.com/6a86ae00932359642f7b4b40a41ddd84e4deae3d9c5dfcab9fdabb93d8018b37/68747470733a2f2f7777772e746f707468696e6b2e636f6d2f75706c6f6164732f617373697374616e742f32303233303633302f34643161336630616432393538623439626238313839623765663832346362302e706e67)

ThinkPHP生态服务由[顶想云](https://www.topthink.com)（TOPThink Cloud）提供，为生态提供专业的开发者服务和价值之选。

文档
--

[](#文档)

[完全开发手册](https://doc.thinkphp.cn)

赞助
--

[](#赞助)

全新的[赞助计划](https://www.thinkphp.cn/sponsor)可以让你通过我们的网站、手册、欢迎页及GIT仓库获得巨大曝光，同时提升企业的品牌声誉，也更好保障ThinkPHP的可持续发展。

[![](https://camo.githubusercontent.com/af5521c88e8d6c6df47e359927269192d76ae56bb70f36269e57e43278b005d0/68747470733a2f2f7777772e7468696e6b7068702e636e2f73706f6e736f722f7370656369616c2e737667)](https://www.thinkphp.cn/sponsor/special)

[![](https://camo.githubusercontent.com/539c03288e4dd8e8b39bd8042cffd5eaf6e84a3ef700d8b49bfb0f144af86a34/68747470733a2f2f7777772e7468696e6b7068702e636e2f73706f6e736f722e737667)](https://www.thinkphp.cn/sponsor)

安装
--

[](#安装)

```
composer create-project topthink/think tp

```

启动服务

```
cd tp
php think run

```

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

```
http://localhost:8000

```

如果需要更新框架使用

```
composer update topthink/framework

```

命名规范
----

[](#命名规范)

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

参与开发
----

[](#参与开发)

直接提交PR或者Issue即可

版权信息
----

[](#版权信息)

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

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

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

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

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

###  Health Score

68

—

FairBetter than 100% of packages

Maintenance54

Moderate activity, may be stable

Popularity73

Solid adoption and visibility

Community51

Growing community involvement

Maturity84

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 69.4% 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 ~41 days

Recently: every ~89 days

Total

84

Last Release

307d ago

Major Versions

v5.1.39 → v6.0.12019-12-19

v5.1.41 → v6.0.92021-07-22

5.1.x-dev → v6.1.02022-10-24

v6.1.0 → v8.0.02023-06-30

6.1.x-dev → v8.12024-11-21

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

v5.1-rc.3PHP &gt;=5.6.0

v6.0.0-rc3PHP &gt;=7.1.0

v6.0.12PHP &gt;=7.2.5

v8.0.0PHP &gt;=8.0.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7858077?v=4)[topthink](/maintainers/topthink)[@topthink](https://github.com/topthink)

---

Top Contributors

[![liu21st](https://avatars.githubusercontent.com/u/1111670?v=4)](https://github.com/liu21st "liu21st (1378 commits)")[![kinosang](https://avatars.githubusercontent.com/u/4987102?v=4)](https://github.com/kinosang "kinosang (160 commits)")[![huangdijia](https://avatars.githubusercontent.com/u/8337659?v=4)](https://github.com/huangdijia "huangdijia (133 commits)")[![Aoiujz](https://avatars.githubusercontent.com/u/1740624?v=4)](https://github.com/Aoiujz "Aoiujz (75 commits)")[![zhylninc](https://avatars.githubusercontent.com/u/3182099?v=4)](https://github.com/zhylninc "zhylninc (48 commits)")[![yunwuxin](https://avatars.githubusercontent.com/u/2168125?v=4)](https://github.com/yunwuxin "yunwuxin (37 commits)")[![Lofanmi](https://avatars.githubusercontent.com/u/3463580?v=4)](https://github.com/Lofanmi "Lofanmi (35 commits)")[![luofei614](https://avatars.githubusercontent.com/u/1470647?v=4)](https://github.com/luofei614 "luofei614 (19 commits)")[![Brother-Simon](https://avatars.githubusercontent.com/u/6212440?v=4)](https://github.com/Brother-Simon "Brother-Simon (19 commits)")[![pwf0112](https://avatars.githubusercontent.com/u/6256668?v=4)](https://github.com/pwf0112 "pwf0112 (14 commits)")[![jasonencode](https://avatars.githubusercontent.com/u/2210843?v=4)](https://github.com/jasonencode "jasonencode (8 commits)")[![liuzhaowei55](https://avatars.githubusercontent.com/u/1835787?v=4)](https://github.com/liuzhaowei55 "liuzhaowei55 (8 commits)")[![Vancels](https://avatars.githubusercontent.com/u/22853197?v=4)](https://github.com/Vancels "Vancels (6 commits)")[![hugtale](https://avatars.githubusercontent.com/u/7259708?v=4)](https://github.com/hugtale "hugtale (5 commits)")[![zizhilong](https://avatars.githubusercontent.com/u/7838661?v=4)](https://github.com/zizhilong "zizhilong (4 commits)")[![oldrind](https://avatars.githubusercontent.com/u/7350831?v=4)](https://github.com/oldrind "oldrind (4 commits)")[![d1webtop](https://avatars.githubusercontent.com/u/16299633?v=4)](https://github.com/d1webtop "d1webtop (3 commits)")[![pakey](https://avatars.githubusercontent.com/u/3023800?v=4)](https://github.com/pakey "pakey (3 commits)")[![leunggamciu](https://avatars.githubusercontent.com/u/1306857?v=4)](https://github.com/leunggamciu "leunggamciu (3 commits)")[![vus520](https://avatars.githubusercontent.com/u/2123561?v=4)](https://github.com/vus520 "vus520 (3 commits)")

---

Tags

frameworkormroutetemplatethinkphpframeworkormthinkphp

### Embed Badge

![Health badge](/badges/topthink-think/health.svg)

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

PHPackages © 2026

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