PHPackages                             nandiao/think-orm - 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. [Database &amp; ORM](/categories/database)
4. /
5. nandiao/think-orm

ActiveLibrary[Database &amp; ORM](/categories/database)

nandiao/think-orm
=================

think orm,nandiao fork修改版

v2.0.46(3y ago)0257Apache-2.0PHPPHP &gt;=7.1.0

Since Oct 27Pushed 3y agoCompare

[ Source](https://github.com/nandiao/think-orm)[ Packagist](https://packagist.org/packages/nandiao/think-orm)[ RSS](/packages/nandiao-think-orm/feed)WikiDiscussions 2.0 Synced 3w ago

READMEChangelogDependencies (4)Versions (78)Used By (0)

ThinkORM(nandiao fork修改版)
=========================

[](#thinkormnandiao-fork修改版)

修改内容

- 添加对swoole多协程的支持 修改版本: v2.0.45
- [修复在使用model时不能使用group方法的问题](https://github.com/top-think/think-orm/pull/300)

基于PHP7.1+ 和PDO实现的ORM，支持多数据库，2.0版本主要特性包括：

- 基于PDO和PHP强类型实现
- 支持原生查询和查询构造器
- 自动参数绑定和预查询
- 简洁易用的查询功能
- 强大灵活的模型用法
- 支持预载入关联查询和延迟关联查询
- 支持多数据库及动态切换
- 支持`MongoDb`
- 支持分布式及事务
- 支持断点重连
- 支持`JSON`查询
- 支持数据库日志
- 支持`PSR-16`缓存及`PSR-3`日志规范

安装
--

[](#安装)

```
composer require topthink/think-orm

```

文档
--

[](#文档)

详细参考 [ThinkORM开发指南](https://www.kancloud.cn/manual/think-orm/content)

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 81.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 ~24 days

Recently: every ~123 days

Total

77

Last Release

1316d ago

Major Versions

v0.9 → v1.02018-01-05

v1.2.17 → v2.0.02019-02-16

PHP version history (2 changes)0.1PHP &gt;=5.6.0

v2.0.0PHP &gt;=7.1.0

### 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 (347 commits)")[![NHZEX](https://avatars.githubusercontent.com/u/14545600?v=4)](https://github.com/NHZEX "NHZEX (20 commits)")[![yunwuxin](https://avatars.githubusercontent.com/u/2168125?v=4)](https://github.com/yunwuxin "yunwuxin (17 commits)")[![big-dream](https://avatars.githubusercontent.com/u/9215157?v=4)](https://github.com/big-dream "big-dream (5 commits)")[![ycentry](https://avatars.githubusercontent.com/u/44660788?v=4)](https://github.com/ycentry "ycentry (4 commits)")[![4352570](https://avatars.githubusercontent.com/u/51403503?v=4)](https://github.com/4352570 "4352570 (3 commits)")[![liuqiantech](https://avatars.githubusercontent.com/u/42691767?v=4)](https://github.com/liuqiantech "liuqiantech (2 commits)")[![evalor](https://avatars.githubusercontent.com/u/26944445?v=4)](https://github.com/evalor "evalor (2 commits)")[![Tinywan](https://avatars.githubusercontent.com/u/14959876?v=4)](https://github.com/Tinywan "Tinywan (2 commits)")[![season886](https://avatars.githubusercontent.com/u/18523125?v=4)](https://github.com/season886 "season886 (2 commits)")[![9007967](https://avatars.githubusercontent.com/u/33853639?v=4)](https://github.com/9007967 "9007967 (2 commits)")[![Junjunya1995](https://avatars.githubusercontent.com/u/24283128?v=4)](https://github.com/Junjunya1995 "Junjunya1995 (1 commits)")[![klinson](https://avatars.githubusercontent.com/u/41332835?v=4)](https://github.com/klinson "klinson (1 commits)")[![laterz](https://avatars.githubusercontent.com/u/14816803?v=4)](https://github.com/laterz "laterz (1 commits)")[![liuqiandev](https://avatars.githubusercontent.com/u/50485460?v=4)](https://github.com/liuqiandev "liuqiandev (1 commits)")[![nandiao](https://avatars.githubusercontent.com/u/30562006?v=4)](https://github.com/nandiao "nandiao (1 commits)")[![goldeagle](https://avatars.githubusercontent.com/u/2135044?v=4)](https://github.com/goldeagle "goldeagle (1 commits)")[![pppscn](https://avatars.githubusercontent.com/u/5105854?v=4)](https://github.com/pppscn "pppscn (1 commits)")[![shaukei](https://avatars.githubusercontent.com/u/1581783?v=4)](https://github.com/shaukei "shaukei (1 commits)")[![sy-records](https://avatars.githubusercontent.com/u/33931153?v=4)](https://github.com/sy-records "sy-records (1 commits)")

---

Tags

databaseorm

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[cakephp/cakephp

The CakePHP framework

8.9k19.5M1.8k](/packages/cakephp-cakephp)[directorytree/ldaprecord

A fully-featured LDAP ORM.

5793.4M17](/packages/directorytree-ldaprecord)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

85036.3k](/packages/flow-php-flow)[topthink/think-orm

the PHP Database&amp;ORM Framework

4372.1M242](/packages/topthink-think-orm)[cycle/database

DBAL, schema introspection, migration and pagination

71777.8k53](/packages/cycle-database)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M574](/packages/shopware-core)

PHPackages © 2026

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