The purpose of this driver is to provide a thin glue between MongoDB and PHP, implementing only fundamental and performance-critical components
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.
The goal is to encourage community contribution and involvement with these components (with a lower barrier of entry) while also keeping the overall design fast and powerful.
To build and install the driver:
$ pecl install mongodb-beta
$ echo "extension=mongodb.so" >> `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.
See CONTRIBUTING.md
- HHVM Implementation of this driver
- Official high-level library
- MongoDB Transistor Lightweight ODM using the Persistable interface