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

ActiveLibrary[Framework](/categories/framework)

cannon/thinkphp
===============

thinkphp 3.2

0377PHP

Since Jul 21Pushed 8y ago1 watchersCompare

[ Source](https://github.com/FengXueZhang/thinkphp)[ Packagist](https://packagist.org/packages/cannon/thinkphp)[ RSS](/packages/cannon-thinkphp/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

1. 修改了debug方式
2. 修改了log记录方式
3. 添加了CLI模式 console.php
4. 修正model的notic错误
5. 修正的了cli模式下的notic错误
6. 对致命错误也增加了日志记录方式
7. 增加了monolog日志驱动,并更改为默认日志驱动
8. 增加了阿里云传驱动

使用: `composer require cannon/thinkphp`

### 配置文件详解

[](#配置文件详解)

##### monolog:

[](#monolog)

```
/* 日志设置 */
'LOG_RECORD'            =>  false,   // 默认不记录日志
'LOG_TYPE'              =>  'ThinkMonoLog', // 日志记录类型 默认为文件(File)方式
'LOG_LEVEL'             =>  'EMERG,ALERT,CRIT,ERR',// 允许记录的日志级别
'LOG_FILE_SIZE'         =>  2097152,	// 日志文件大小限制
'LOG_EXCEPTION_RECORD'  =>  false,    // 是否记录异常信息日志

/* monolog的日志设置 */
'MONOLOG_RSYSLOG_FLAG'  => false, // 是否开启rsyslog日志远程传输
'MONOLOG_LOCAL_FLAG'    => true,  // 是否将日志记录到本地文件
```

##### 阿里云上传驱动:

[](#阿里云上传驱动)

```
# 上传驱动更改为阿里云及其配置
'FILE_UPLOAD_TYPE'     => 'Aliyun', // 更改上传驱动为阿里云
'UPLOAD_TYPE_CONFIG'   => [
  'accessKeyId'     => '', // 阿里云权限用户的accessKeyId
  'accessKeySecret' => '', // 阿里云权限用户的accessKeySecret
  'endpoint'        => '', // OSS的endpoint
  'bucket'          => '', // OSS的bucket
  'isCName'         => true, // OSS是否绑定了域名
],
```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

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

### Community

Maintainers

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

---

Top Contributors

[![FengXueZhang](https://avatars.githubusercontent.com/u/18481425?v=4)](https://github.com/FengXueZhang "FengXueZhang (7 commits)")

### Embed Badge

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

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

###  Alternatives

[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k39.6M294](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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