Skip to content

mongodb/mongo-php-library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

302de20 · Dec 5, 2016
Jun 3, 2016
Dec 1, 2016
Sep 22, 2016
Mar 24, 2015
Sep 23, 2016
Dec 19, 2014
May 12, 2015
Jan 21, 2016
Dec 12, 2014
May 12, 2015
Dec 5, 2016
Jan 21, 2016
Mar 14, 2016
Mar 29, 2016
Apr 30, 2015

Repository files navigation

MongoDB library for PHP

This library provides a high-level abstraction around the lower-level drivers for PHP and HHVM (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).

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 further information about the architecture of this library and the mongodb extension, see:

Documentation

Installation

As a high-level abstraction for the driver, this library naturally requires that the mongodb extension be installed:

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

The preferred method of installing this library is with Composer by running the following from your project root:

$ composer require "mongodb/mongodb=^1.0.0"

Reporting Issues

Please use the following form to report any issues: