1.2 KiB
What is pecl/mongodb?
pecl/mongodb is an experimental MongoDB driver for PHP, likely replacing the mongodb/mongo-php-driver driver in the near future.
pecl/mongodb is written ontop of libmongoc and libbson, and is meant to be as basic as possible. Core MongoDB concepts are implemented, but everything else is left for other toolkits to come in and provide pretty and flexible bindings that make sense for their ecosystem.
This makes the driver exceptionally fast, and really easy to work with and provide first class experience in your framework, library or application.
The plan is to provide an example bindings, which you may chose to use - or ignore and make your own.
Installation
Ultimately, this extension is not intended to be explicitly installed. Users should choose one (or more) userland PHP libraries that depend on this driver, and install them using, for example, Composer.
To build and install the driver:
$ pecl install mongodb-alpha
$ echo "extension=mongodb.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`