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

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

cyzonetech/think-mongo
======================

mongodb driver for thinkphp6.0

v3.0.4(6y ago)0164Apache-2.0PHP

Since Sep 13Pushed 6y agoCompare

[ Source](https://github.com/cyzonetech/think-mongo)[ Packagist](https://packagist.org/packages/cyzonetech/think-mongo)[ RSS](/packages/cyzonetech-think-mongo/feed)WikiDiscussions 3.0 Synced 4w ago

READMEChangelog (1)Dependencies (1)Versions (41)Used By (0)

ThinkPHP 6.0 MongoDb驱动
======================

[](#thinkphp-60-mongodb驱动)

请使用最新版本的topthink/think-orm 本仓库不再维护更新

首先安装官方的mongodb扩展：

然后，配置应用的数据库配置文件`database.php`的`type`参数改为：

```
'type'   =>  'Mongo',

```

即可正常使用MongoDb，例如：

```
Db::name('demo')
    ->find();
Db::name('demo')
    ->field('id,name')
    ->limit(10)
    ->order('id','desc')
    ->select();

```

###  Health Score

32

—

LowBetter than 71% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor1

Top contributor holds 93.2% 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 ~44 days

Total

40

Last Release

2359d ago

Major Versions

v1.8.4 → v2.0.102018-04-04

v1.8.5 → v2.0.112018-06-03

v2.0.14 → v3.0.02019-04-26

v2.0.15 → v3.0.22019-05-31

2.0.x-dev → 3.0.x-dev2019-11-23

### 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 (137 commits)")[![iiQi](https://avatars.githubusercontent.com/u/3948037?v=4)](https://github.com/iiQi "iiQi (4 commits)")[![Cailiang](https://avatars.githubusercontent.com/u/7157427?v=4)](https://github.com/Cailiang "Cailiang (3 commits)")[![cyzonetech](https://avatars.githubusercontent.com/u/30819954?v=4)](https://github.com/cyzonetech "cyzonetech (1 commits)")[![starfishs](https://avatars.githubusercontent.com/u/15102743?v=4)](https://github.com/starfishs "starfishs (1 commits)")[![zaqwsx2541](https://avatars.githubusercontent.com/u/19380876?v=4)](https://github.com/zaqwsx2541 "zaqwsx2541 (1 commits)")

### Embed Badge

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

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

###  Alternatives

[topthink/think-migration

96460.8k121](/packages/topthink-think-migration)[topthink/think-mongo

mongodb driver for thinkphp6.0

109139.8k6](/packages/topthink-think-mongo)

PHPackages © 2026

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