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

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

qfz9527/think-mongo
===================

mongodb driver for thinkphp6.0

3.0.x-dev(2y ago)03Apache-2.0

Since Jan 26Pushed 2y agoCompare

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

READMEChangelogDependencies (1)Versions (3)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

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity29

Early-stage or recently created project

 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 ~2 days

Total

2

Last Release

832d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/605889c14b71a45f23c0853ddb6cbbb6a24243cfd7d37244ddc3739b738ee7a3?d=identicon)[qfz9527](/maintainers/qfz9527)

---

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)")[![qfz9527](https://avatars.githubusercontent.com/u/24431828?v=4)](https://github.com/qfz9527 "qfz9527 (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/qfz9527-think-mongo/health.svg)

```
[![Health](https://phpackages.com/badges/qfz9527-think-mongo/health.svg)](https://phpackages.com/packages/qfz9527-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)
