Skip to content

ctoomey/mongo-php-driver

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 the configuration 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.

About

Officially supported PHP driver for MongoDB

Resources

License

Stars

Watchers

Forks

Packages

No packages published