MongoDB PHP driver (experimental)
PHP Python C M4 C++ JavaScript Other
Switch branches/tags
Clone or download
Pull request Compare This branch is 13 commits behind mongodb:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.appveyor
.github
.travis.scripts
bin
scripts
src
tests
.appveyor.yml
.clang-format
.gitignore
.gitmodules
.llvm-cov.sh
.travis.yml
CONTRIBUTING.md
CREDITS
LICENSE
Makefile.frag
README.md
THIRD_PARTY_NOTICES
Vagrantfile
config.m4
config.w32
phongo_compat.c
phongo_compat.h
phongo_version.h
php_bson.h
php_phongo.c
php_phongo.h
php_phongo_classes.h
php_phongo_structs.h
template.rc

README.md

MongoDB PHP Driver

Travis Build Status AppVeyor Build Status Coverage Status

This extension is developed atop the libmongoc and libbson libraries. It provides a minimal API for core driver functionality: commands, queries, writes, connection management, and BSON serialization.

Userland PHP libraries that depend on this extension may provide higher level APIs, such as query builders, individual command helper methods, and GridFS. Application developers should consider using this extension in conjunction with the MongoDB PHP library, which implements the same higher level APIs found in MongoDB drivers for other languages (as well as the legacy PHP driver).

Documentation

Installation

To build and install the driver:

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

Additional installation instructions may be found in the PHP.net documentation.

This extension is intended to be used alongside the MongoDB PHP Library, which is distributed as the mongodb/mongodb package for for Composer.

Reporting Issues

Issues pertaining to the extension should be reported in the PHPC project in MongoDB's JIRA. Library-related issues should be reported in the PHPLIB project.

For general questions and support requests, please use one of MongoDB's Technical Support channels.

Security Vulnerabilities

If you've identified a security vulnerability in a driver or any other MongoDB project, please report it according to the instructions in Create a Vulnerability Report.

Development

Development is tracked in the PHPC project in MongoDB's JIRA. Documentation for contributing to this project may be found in CONTRIBUTING.md.