Jeremy Mikola c32a7cc646 Remove unnecessary php_phongo_cursor_free_current() call
The current element is already freed at the top of this function. After that point, the element could only be intialized from first_batch_iter (after which we return immediately) or if mongoc_cursor_next() returns true (in which case we wouldn't be in this else clause).
2015-04-06 17:31:56 -04:00
2015-03-25 13:37:13 -07:00
2015-03-26 14:23:43 -07:00
2014-06-20 14:50:40 -07:00
2014-11-25 14:33:45 -08:00
2014-12-19 16:43:52 -05:00
2015-02-19 13:57:58 -08:00
2015-03-25 16:18:56 -07:00
2014-12-04 09:35:38 -08:00
2014-12-04 09:35:38 -08:00
2014-12-08 15:52:11 -08:00
2014-12-22 13:24:48 -08:00
2015-02-02 15:06:34 -08:00
2015-03-11 10:48:00 -07:00
2015-03-23 16:41:40 -07:00
2015-03-25 16:09:15 -07:00
2015-03-25 20:09:01 -07:00
2015-04-01 14:52:24 -07:00

pecl/mongodb (MongoDB driver for PHP)

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.

Documentation

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 Composer. At some point in the future, Composer may support installing extension dependencies.

This project is currently not published as a PECL extension and must be built and installed manually.

To build and install the driver:

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

Contributing

See CONTRIBUTING.md

Testing

To execute the driver's test suite:

$ make vm # requires vagrant (www.vagrantup.com)
$ make test-bootstrap # Spins up mongod's in the virtual machines
$ make test # Executes the test suite against the virtual machines

Some tests depend on userland PHP libraries (e.g. creating data fixtures) and may be skipped if those dependencies are not available. Those libraries may be installed with via Composer:

$ make composer
Description
No description provided
Readme Apache-2.0 12 MiB
Languages
PHP 62.7%
C 32%
M4 4.1%
JavaScript 0.7%
Shell 0.3%
Other 0.2%