Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Officially supported PHP driver for MongoDB

Fetching latest commit…

Cannot retrieve the latest commit at this time


To install:

sudo make install

Then add

to your php.ini file.


See the PHP manual.


The tests are not available as part of the PECL package, but they are available on Github.
To run the test, you'll have to configure the tests/ file (copy the tests/ to tests/ and edit it). By default, the tests will be executed in several different environments; (currently:)

  • Replicaset (without authentication)
  • Standalone

If you are not running any of these environments, you can disable these runs by adjusting theconfiguration file.

Once you have filled out the configuration template, run the following command to launch the test suite.

$ make test


Jon Moss

  • Came up with the idea and implemented MongoCursor implementing Iterator

Pierre-Alain Joye

  • Helped build the Windows extension and has provided the VC6 builds

Cesar Rodas

  • Created the MongoCursor::info method
  • Implemented GridFS read streaming

William Volkman

  • Made connection code check & handle error status

Derick Rethans

  • Implemented MongoInt32, MongoInt64 and related php.ini options.
Something went wrong with that request. Please try again.