PHPackages                             taniele/mongofill - 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. taniele/mongofill

ActiveLibrary

taniele/mongofill
=================

Polyfill of PECL Mongo extension

098PHP

Since Mar 3Pushed 12y ago1 watchersCompare

[ Source](https://github.com/taniele/mongofill)[ Packagist](https://packagist.org/packages/taniele/mongofill)[ RSS](/packages/taniele-mongofill/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependenciesVersions (2)Used By (0)

Mongofill [![Build Status](https://camo.githubusercontent.com/0bbacc4bac9cf479ab1bfacb57f4f0269b9267d06045631410fa1354d1a5d1cf/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6d6f6e676f66696c6c2f6d6f6e676f66696c6c2e706e67)](http://travis-ci.org/mongofill/mongofill)
===================================================================================================================================================================================================================================================================================

[](#mongofill-)

Pure PHP implementation of MongoDB driver, with aim to be a drop-in replacement of the official extension, usable under HHVM runtime.

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

[](#installation)

### Recommended way

[](#recommended-way)

The recommended way of installing is through the [mongofill-hhvm](https://github.com/mongofill/mongofill-hhvm) package as HNI extension of HHVM

```
git clone https://github.com/mongofill/mongofill-hhvm
cd mongofill-hhvm
./build.sh
```

You can read the full instructions at [building-and-installation instructions](https://github.com/mongofill/mongofill-hhvm#building-and-installation) from the HNI package.

### Easy way

[](#easy-way)

The easy way of installing Mongofill is [through composer](http://getcomposer.org). You can see [package information on Packagist.](https://packagist.org/packages/mongofill/mongofill)

```
{
    "require": {
        "mongofill/mongofill": "dev-master"
    }
}
```

> Note: as pure PHP, the phpversion('mongo') will return null and some libraries as Doctrine will not work properly [without modifications](https://github.com/mcuadros/mongodb-odm/commit/b89b21b8dca6a0b545a718f3805248453a27ec3d), so please use the HNI version.

Supported libraries
-------------------

[](#supported-libraries)

You can check the current supported libraries at wiki page [Supported-Libraries](https://github.com/koubas/mongofill/wiki/Supported-Libraries)

Community
---------

[](#community)

You can catch us on IRC on Freenode channel #mongofill

Contributing
------------

[](#contributing)

Please push tests, ensuring compatibility with the official Mongo extension, that are not passing yet, into the "compat/not-passing" branch.

Contributions are greatly appreciated, including corrections of our english ;)

To ensure a consistent code base, you should make sure the code follows the PSR2 coding standards. We suggest use php-cs-fixer with your code before make the pull request with this flags: `php-cs-fixer fix . --level=all`

### Running the PHPUnit tests

[](#running-the-phpunit-tests)

Tests are in the `test` folder. To run them, you need PHPUnit.

```
phpunit --configuration phpunit.xml.dist
```

### Running the native mongo-php-driver tests

[](#running-the-native-mongo-php-driver-tests)

You can find helper script at `test/native/helper.sh`. Your system must have installed: mongodb, git, phpize and autotools

```
cd tests/native/
./helper.sh setup
./helper.sh boot
./helper.sh run
```

Benchmarking
------------

[](#benchmarking)

A small suite of benchmarking is included with the package, you can run the suite with this command:

```
php ./vendor/bin/athletic -b tests/bootstrap.php  -p tests/Mongofill/Benchmarks/
```

Some results can be find at:

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 60.7% 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/6cd1016d0fe57bab367606614750289f5fd892fec18efeb5f168e733cc64629d?d=identicon)[taniele](/maintainers/taniele)

---

Top Contributors

[![mcuadros](https://avatars.githubusercontent.com/u/1573114?v=4)](https://github.com/mcuadros "mcuadros (88 commits)")[![koubas](https://avatars.githubusercontent.com/u/1354930?v=4)](https://github.com/koubas "koubas (36 commits)")[![Pomyk](https://avatars.githubusercontent.com/u/156784?v=4)](https://github.com/Pomyk "Pomyk (12 commits)")[![thawkins](https://avatars.githubusercontent.com/u/14537?v=4)](https://github.com/thawkins "thawkins (3 commits)")[![iamdaniele](https://avatars.githubusercontent.com/u/208292?v=4)](https://github.com/iamdaniele "iamdaniele (2 commits)")[![Kozzi11](https://avatars.githubusercontent.com/u/1239642?v=4)](https://github.com/Kozzi11 "Kozzi11 (2 commits)")[![tstobbe](https://avatars.githubusercontent.com/u/847910?v=4)](https://github.com/tstobbe "tstobbe (1 commits)")[![EmmanuelVella](https://avatars.githubusercontent.com/u/663607?v=4)](https://github.com/EmmanuelVella "EmmanuelVella (1 commits)")

### Embed Badge

![Health badge](/badges/taniele-mongofill/health.svg)

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

PHPackages © 2026

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