Skip to content
This repository

HTTPS clone URL

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

README.md

Installation

To install:

phpize
./configure
make
sudo make install

Then add

extension=mongo.so

to your php.ini file.

Documentation

See the PHP manual.

Testing

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/mongo-test-cfg.inc file (copy the tests/mongo-test-cfg.inc.template to tests/mongo-test-cfg.inc 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

Credits

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.