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

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

cyzonetech/framework
====================

fix bug from topthink/framework

v6.0.7.1(5y ago)1805↓100%2Apache-2.0PHPPHP &gt;=7.1.0

Since Jan 30Pushed 4y agoCompare

[ Source](https://github.com/cyzonetech/framework)[ Packagist](https://packagist.org/packages/cyzonetech/framework)[ Docs](http://thinkphp.cn/)[ RSS](/packages/cyzonetech-framework/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (10)Versions (111)Used By (0)

ThinkPHP 5.0
============

[](#thinkphp-50)

[![StyleCI](https://camo.githubusercontent.com/8274cf7dfdb634b75aab74b3ba046be8103110a622b56b959a78462240a4ec54/68747470733a2f2f7374796c6563692e696f2f7265706f732f34383533303431312f736869656c643f7374796c653d666c6174266272616e63683d6d6173746572)](https://styleci.io/repos/48530411)[![Build Status](https://camo.githubusercontent.com/29ece23cb91e7cb552c6ce97968b264470afcc509366ce9ce9f16ad571ba0194/68747470733a2f2f7472617669732d63692e6f72672f746f702d7468696e6b2f6672616d65776f726b2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/top-think/framework)[![codecov.io](https://camo.githubusercontent.com/f3cb42c5547469e03423b87bd8536e795b2723607d35427e48df66d3b20e4118/687474703a2f2f636f6465636f762e696f2f6769746875622f746f702d7468696e6b2f6672616d65776f726b2f636f7665726167652e7376673f6272616e63683d6d6173746572)](http://codecov.io/github/github/top-think/framework?branch=master)[![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)[![Latest Unstable Version](https://camo.githubusercontent.com/e601aca26e7add92a7af6fe290db4ff89a539f8ee1c52d3eaccb24508f316758/68747470733a2f2f706f7365722e707567782e6f72672f746f707468696e6b2f6672616d65776f726b2f762f756e737461626c65)](https://packagist.org/packages/topthink/framework)[![License](https://camo.githubusercontent.com/0f43fddc07ecf7a85a9c76f8ef282e678ca990e7d1dd474b37cc314de6e596dd/68747470733a2f2f706f7365722e707567782e6f72672f746f707468696e6b2f6672616d65776f726b2f6c6963656e7365)](https://packagist.org/packages/topthink/framework)

ThinkPHP5在保持快速开发和大道至简的核心理念不变的同时，PHP版本要求提升到5.4，优化核心，减少依赖，基于全新的架构思想和命名空间实现，是ThinkPHP突破原有框架思路的颠覆之作，其主要特性包括：

- 基于命名空间和众多PHP新特性
- 核心功能组件化
- 强化路由功能
- 更灵活的控制器
- 重构的模型和数据库类
- 配置文件可分离
- 重写的自动验证和完成
- 简化扩展机制
- API支持完善
- 改进的Log类
- 命令行访问支持
- REST支持
- 引导文件支持
- 方便的自动生成定义
- 真正惰性加载
- 分布式环境支持
- 支持Composer
- 支持MongoDb

> ThinkPHP5的运行环境要求PHP5.4以上。

详细开发文档参考 [ThinkPHP5完全开发手册](http://www.kancloud.cn/manual/thinkphp5) 以及[ThinkPHP5入门系列教程](http://www.kancloud.cn/special/thinkphp5_quickstart)

目录结构
----

[](#目录结构)

初始的目录结构如下：

```
www  WEB部署目录（或者子目录）
├─application           应用目录
│  ├─common             公共模块目录（可以更改）
│  ├─module_name        模块目录
│  │  ├─config.php      模块配置文件
│  │  ├─common.php      模块函数文件
│  │  ├─controller      控制器目录
│  │  ├─model           模型目录
│  │  ├─view            视图目录
│  │  └─ ...            更多类库目录
│  │
│  ├─command.php        命令行工具配置文件
│  ├─common.php         公共函数文件
│  ├─config.php         公共配置文件
│  ├─route.php          路由配置文件
│  ├─tags.php           应用行为扩展定义文件
│  └─database.php       数据库配置文件
│
├─public                WEB目录（对外访问目录）
│  ├─index.php          入口文件
│  ├─router.php         快速测试文件
│  └─.htaccess          用于apache的重写
│
├─thinkphp              框架系统目录
│  ├─lang               语言文件目录
│  ├─library            框架类库目录
│  │  ├─think           Think类库包目录
│  │  └─traits          系统Trait目录
│  │
│  ├─tpl                系统模板目录
│  ├─base.php           基础定义文件
│  ├─console.php        控制台入口文件
│  ├─convention.php     框架惯例配置文件
│  ├─helper.php         助手函数文件
│  ├─phpunit.xml        phpunit配置文件
│  └─start.php          框架入口文件
│
├─extend                扩展类库目录
├─runtime               应用的运行时目录（可写，可定制）
├─vendor                第三方类库目录（Composer依赖库）
├─build.php             自动生成定义文件（参考）
├─composer.json         composer 定义文件
├─LICENSE.txt           授权说明文件
├─README.md             README 文件
├─think                 命令行入口文件

```

> router.php用于php自带webserver支持，可用于快速测试 切换到public目录后，启动命令：php -S localhost:8888 router.php 上面的目录结构和名称是可以改变的，这取决于你的入口文件和配置参数。

命名规范
----

[](#命名规范)

ThinkPHP5的命名规范遵循`PSR-2`规范以及`PSR-4`自动加载规范。

参与开发
----

[](#参与开发)

注册并登录 Github 帐号， fork 本项目并进行改动。

更多细节参阅 [CONTRIBUTING.md](CONTRIBUTING.md)

版权信息
----

[](#版权信息)

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

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

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

All rights reserved。

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

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

###  Health Score

36

↑

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor1

Top contributor holds 84.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 ~20 days

Recently: every ~102 days

Total

109

Last Release

1461d ago

Major Versions

5.1.39.4 → v6.0.7.12021-02-07

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

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

v6.0.7.1PHP &gt;=7.1.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/3ef3569ae46017080f8b5991b777151e843af273ee124f0cd65f6cffa6cb0cfd?d=identicon)[cyzonetech](/maintainers/cyzonetech)

---

Top Contributors

[![liu21st](https://avatars.githubusercontent.com/u/1111670?v=4)](https://github.com/liu21st "liu21st (3593 commits)")[![yunwuxin](https://avatars.githubusercontent.com/u/2168125?v=4)](https://github.com/yunwuxin "yunwuxin (132 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 (71 commits)")[![vus520](https://avatars.githubusercontent.com/u/2123561?v=4)](https://github.com/vus520 "vus520 (32 commits)")[![yinggaozhen](https://avatars.githubusercontent.com/u/13899619?v=4)](https://github.com/yinggaozhen "yinggaozhen (28 commits)")[![Lofanmi](https://avatars.githubusercontent.com/u/3463580?v=4)](https://github.com/Lofanmi "Lofanmi (23 commits)")[![cyzonetech](https://avatars.githubusercontent.com/u/30819954?v=4)](https://github.com/cyzonetech "cyzonetech (22 commits)")[![shuipf](https://avatars.githubusercontent.com/u/2285144?v=4)](https://github.com/shuipf "shuipf (16 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)")[![hugtale](https://avatars.githubusercontent.com/u/7259708?v=4)](https://github.com/hugtale "hugtale (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)")[![lilwil](https://avatars.githubusercontent.com/u/11472237?v=4)](https://github.com/lilwil "lilwil (7 commits)")[![Vancels](https://avatars.githubusercontent.com/u/22853197?v=4)](https://github.com/Vancels "Vancels (7 commits)")[![yangweijie](https://avatars.githubusercontent.com/u/1614114?v=4)](https://github.com/yangweijie "yangweijie (7 commits)")[![leunggamciu](https://avatars.githubusercontent.com/u/1306857?v=4)](https://github.com/leunggamciu "leunggamciu (6 commits)")

---

Tags

frameworkormthinkphp

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[cakephp/cakephp

The CakePHP framework

8.8k18.2M1.4k](/packages/cakephp-cakephp)[topthink/framework

The ThinkPHP Framework.

2.8k3.2M1.2k](/packages/topthink-framework)[wpstarter/framework

The WpStarter Framework - Laravel Framework for WordPress

1610.0k4](/packages/wpstarter-framework)

PHPackages © 2026

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