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

ActiveLibrary[Framework](/categories/framework)

topthink/framework
==================

The ThinkPHP Framework.

v8.1.4(4mo ago)2.8k3.2M↑21.1%1.0k[1 issues](https://github.com/top-think/framework/issues)[2 PRs](https://github.com/top-think/framework/pulls)20Apache-2.0PHPPHP &gt;=8.0.0CI passing

Since Jan 30Pushed 1mo ago169 watchersCompare

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

READMEChangelog (10)Dependencies (12)Versions (125)Used By (20)Security (19)

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

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

[](#thinkphp-8)

[![build](https://github.com/top-think/framework/actions/workflows/build.yml/badge.svg?branch=8.0)](https://github.com/top-think/framework/actions)[![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/854124dd57cfd3aad3184fca9760bf1f33a5ec1e5d080cfbe8aa4e3337ba46e6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344382e302d3838393242462e737667)](http://www.php.net/)[![License](https://camo.githubusercontent.com/0f43fddc07ecf7a85a9c76f8ef282e678ca990e7d1dd474b37cc314de6e596dd/68747470733a2f2f706f7365722e707567782e6f72672f746f707468696e6b2f6672616d65776f726b2f6c6963656e7365)](https://packagist.org/packages/topthink/framework)

主要特性
----

[](#主要特性)

- 基于 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://chat.topthink.com/)

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

文档
--

[](#文档)

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

基于官方手册的数据训练和提供精准解答服务 [官方专家智能体](https://chat.topthink.com/chat/eorole)

赞助商
---

[](#赞助商)

全新的[赞助计划](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-2025 by ThinkPHP () All rights reserved。

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

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

###  Health Score

78

—

ExcellentBetter than 100% of packages

Maintenance84

Actively maintained with recent releases

Popularity72

Solid adoption and visibility

Community66

Healthy contributor diversity

Maturity85

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 86.3% 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 ~30 days

Recently: every ~121 days

Total

124

Last Release

54d ago

Major Versions

v6.1.3 → v8.0.02023-06-30

v6.1.4 → v8.0.22023-08-15

5.1.x-dev → v6.1.52024-04-16

6.0.x-dev → v8.0.42024-07-29

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

PHP version history (5 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

v8.0.0-betaPHP &gt;=8.0.0

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/7422243107bba2d58c5682b69d1c405e66fa027df2f6202afc1bb0c55559a7b1?d=identicon)[yunwuxin](/maintainers/yunwuxin)

---

Top Contributors

[![liu21st](https://avatars.githubusercontent.com/u/1111670?v=4)](https://github.com/liu21st "liu21st (5300 commits)")[![yunwuxin](https://avatars.githubusercontent.com/u/2168125?v=4)](https://github.com/yunwuxin "yunwuxin (285 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)")[![big-dream](https://avatars.githubusercontent.com/u/9215157?v=4)](https://github.com/big-dream "big-dream (43 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)")[![NHZEX](https://avatars.githubusercontent.com/u/14545600?v=4)](https://github.com/NHZEX "NHZEX (18 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)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (8 commits)")[![sy-records](https://avatars.githubusercontent.com/u/33931153?v=4)](https://github.com/sy-records "sy-records (8 commits)")[![yangweijie](https://avatars.githubusercontent.com/u/1614114?v=4)](https://github.com/yangweijie "yangweijie (8 commits)")[![Vancels](https://avatars.githubusercontent.com/u/22853197?v=4)](https://github.com/Vancels "Vancels (7 commits)")

---

Tags

frameworkormroutetemplatethinkphpframeworkormthinkphp

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

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

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

###  Alternatives

[cakephp/cakephp

The CakePHP framework

8.8k18.5M1.6k](/packages/cakephp-cakephp)[shopware/platform

The Shopware e-commerce core

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

PHPackages © 2026

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