Name
Last commit
Last update
..
classes Loading commit data...
img Loading commit data...
tutorial Loading commit data...
getting-started.md Loading commit data...
index.md Loading commit data...
pretty.js Loading commit data...
upgrade-guide.md Loading commit data...

MongoDB PHP Library

This library provides a high-level abstraction around the lower-level PHP driver (i.e. the mongodb extension).

While the extension provides a limited API for executing commands, queries, and write operations, this library implements an API similar to that of the legacy PHP driver. It contains abstractions for client, database, and collection objects, and provides methods for CRUD operations and common commands (e.g. index and collection management). Support for GridFS is forthcoming.

If you are developing an application with MongoDB, you should consider using this library, or another high-level abstraction, instead of the extension alone.

For additional information about this library and the mongodb extension, see the Architecture Overview article in the driver documentation. Derick Rethans has also written a series of blog posts entitled New MongoDB Drivers for PHP and HHVM:

API Documentation

Generated API documentation for the library is available at:

MongoDB Tutorial

If you are a new MongoDB user, these links should help you become more familiar with MongoDB and introduce some of the concepts and terms you will encounter in this documentation: