PHP C M4 JavaScript Shell Makefile Other
Latest commit 021f357 May 22, 2017 @jmikola jmikola Merge pull request #595
Failed to load latest commit information.
.github Remove PR issue template Aug 31, 2016
.travis.scripts For failed tests, show the full .exp and .out files Mar 31, 2017
bin PHPC-928: Consolidate glob paths for phpt files Mar 15, 2017
scripts PHPC-941: Use toExtendedJSON() for BSON corpus tests Apr 7, 2017
src PHPC-895: Require 16-byte data length for Binary UUID subtypes 0x03 a… May 12, 2017
tests PHPC-586: Regression tests for tailable cursor iteration May 16, 2017
.gitignore Remove references to Composer and PHPUnit Feb 10, 2017
.gitmodules We are tracking 1.2.0-dev, not master! Jul 15, 2015 Add travis and coveralls support Jun 20, 2014
.travis.yml For failed tests, show the full .exp and .out files Mar 31, 2017 PHPC-936: Define PHP_MONGODB_VERSION and STABILITY constants Mar 17, 2017
CREDITS Fixed CREDITS file and include it in package.xml too Nov 29, 2016
LICENSE Add Apache 2 license Dec 19, 2014
Makefile.frag Remove references to Composer and PHPUnit Feb 10, 2017 PHPC-584: Remove MkDocs documentation Oct 26, 2016
Vagrantfile Increased vagrant memory usage for virtual box to 2G Apr 20, 2016
config.m4 PHPC-964: Ensure SASL output variables are always defined May 22, 2017
config.w32 PHPC-640: TypeWrapper interface Apr 26, 2017
phongo_compat.c PHPC-890: Add license header copypasta Jan 6, 2017
phongo_compat.h Create PHP 5.x compatibility macro for ZVAL_UNDEF Apr 7, 2017
php_bson.h Return boolean instead of int from php_phongo_bson_to_zval_ex() May 8, 2017
php_phongo.c PHPC-959: mongoc_collection_find_with_opts() always returns a cursor May 8, 2017
php_phongo.h PHPC-349: Implement APM specification Mar 31, 2017
php_phongo_classes.h PHPC-640: TypeWrapper interface Apr 26, 2017
php_phongo_structs.h PHPC-951: CursorId is a signed 64-bit integer Apr 14, 2017

pecl/mongodb (MongoDB driver for PHP)

Build Status Coverage Status

This is the low-level PHP driver for MongoDB. The API is the same as the HHVM driver for MongoDB. The documentation for both of them is the same, and can be found at

The driver is written to be a bare bone layer to talk to MongoDB, and therefore misses many convenience features. Instead, these convenience methods have been split out into a layer written in PHP, the MongoDB Library. Using this library should be your preferred way of interacting with MongoDB.

Please note that the new HHVM and PHP drivers implement a different API from the legacy driver at; therefore existing libraries that use the legacy driver (e.g. Doctrine MongoDB's ODM) will not work with the new drivers.

In the long run, we hope that userland packages will be built atop this driver to implement various APIs (e.g. a BC layer for the existing driver, new fluent interfaces), management utilities (for creating admin utilities and cluster management applications), and other interesting libraries.



To build and install the driver:

$ pecl install mongodb
$ echo "" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`

We recommend using this extension in conjunction with our userland library, which is distributed as mongodb/mongodb for Composer.



Related Projects