PHPackages                             mongodb/builder - 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. mongodb/builder

Abandoned → [mongodb/mongodb](/?search=mongodb%2Fmongodb)ArchivedLibrary[Database &amp; ORM](/categories/database)

mongodb/builder
===============

Query and Aggregation Builder for MongoDB

0.2.0(2y ago)6106.9k↑10.3%4Apache-2.0PHPPHP &gt;=8.1CI passing

Since Feb 8Pushed 2y ago4 watchersCompare

[ Source](https://github.com/mongodb/mongo-php-builder)[ Packagist](https://packagist.org/packages/mongodb/builder)[ Docs](https://jira.mongodb.org/browse/PHPLIB)[ RSS](/packages/mongodb-builder/feed)WikiDiscussions 0.2 Synced 1mo ago

READMEChangelog (1)Dependencies (6)Versions (4)Used By (0)

MongoDB PHP Builder
===================

[](#mongodb-php-builder)

Query and Aggregation Builder for MongoDB PHP Library.

This package is experimental and requires PHP 8.1 or higher. Once it is stable, it will be merged into `mongodb/mongodb`.

Installation
------------

[](#installation)

```
$ composer require mongodb/builder
```

Usage
-----

[](#usage)

Development
-----------

[](#development)

Development is tracked in the [PHPLIB](https://jira.mongodb.org/projects/PHPLIB/summary) project in MongoDB's JIRA. Documentation for contributing to this project may be found in [CONTRIBUTING.md](CONTRIBUTING.md).

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity38

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 81.8% 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 ~15 days

Total

4

Last Release

784d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/400034?v=4)[Jérôme Tamarelle](/maintainers/GromNaN)[@GromNaN](https://github.com/GromNaN)

![](https://avatars.githubusercontent.com/u/383198?v=4)[Andreas Braun](/maintainers/alcaeus)[@alcaeus](https://github.com/alcaeus)

---

Top Contributors

[![GromNaN](https://avatars.githubusercontent.com/u/400034?v=4)](https://github.com/GromNaN "GromNaN (54 commits)")[![alcaeus](https://avatars.githubusercontent.com/u/383198?v=4)](https://github.com/alcaeus "alcaeus (9 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")[![tom-selander](https://avatars.githubusercontent.com/u/105729911?v=4)](https://github.com/tom-selander "tom-selander (1 commits)")

---

Tags

persistencedatabasemongodbdriver

###  Code Quality

Static AnalysisPsalm, Rector

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/mongodb-builder/health.svg)

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

###  Alternatives

[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k7.2M71](/packages/mongodb-laravel-mongodb)[mongodb/mongodb-extension

MongoDB driver extension

91919.8k](/packages/mongodb-mongodb-extension)[alcaeus/mongo-php-adapter

Adapter to provide ext-mongo interface on top of mongo-php-library

46412.3M73](/packages/alcaeus-mongo-php-adapter)[moloquent/moloquent

A MongoDB based Eloquent model and Query builder for Laravel (Moloquent)

120114.6k7](/packages/moloquent-moloquent)[doesntmattr/mongodb-migrations

Managed Database Migrations for MongoDB

23598.7k1](/packages/doesntmattr-mongodb-migrations)

PHPackages © 2026

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