PHP Python C M4 C++ Shell Other
Latest commit 19db8d9 Aug 15, 2018
Permalink
Failed to load latest commit information.
.appveyor PHPC-1114: Add template.rc file to embed the right MongoDB version in… Feb 27, 2018
.github Remove PR issue template Aug 31, 2016
.travis.scripts PHPC-1184: Add replica set with single node Aug 8, 2018
bin PHPC-1174: Fixed PECL package generation due to directory changes Jun 26, 2018
scripts PHPC-1184: Add replica set with single node Aug 8, 2018
src Merge branch 'v1.5' Jul 27, 2018
tests Merge branch 'v1.5' Aug 15, 2018
.appveyor.yml PHPC-1121: Added Appveyor config Feb 27, 2018
.clang-format PHPC-1118: Add detection of the correct clang-format binary Feb 23, 2018
.gitignore Do not ignore files within .travis.scripts/ Jan 22, 2018
.gitmodules PHPC-1174: Bump libbson and libmongoc to 1.10.0-dev May 18, 2018
.llvm-cov.sh Add travis and coveralls support Jun 20, 2014
.travis.yml PHPC-1184: Add replica set with single node Aug 8, 2018
CONTRIBUTING.md PHPC-1250: Best practices for SKIPIF Jul 31, 2018
CREDITS PHPC-1114: Add template.rc file to embed the right MongoDB version in… Feb 27, 2018
LICENSE Add Apache 2 license Dec 19, 2014
Makefile.frag PHPC-1118: Implement use of clang-format Feb 20, 2018
README.md PHPC-1136: Add Appveyor build status badge to readme Apr 11, 2018
THIRD_PARTY_NOTICES PHPC-799: Add THIRD_PARTY_NOTICES file Nov 22, 2016
Vagrantfile Add 4.0 to Vagrant test set-up Jun 19, 2018
config.m4 Merge branch 'v1.5' Aug 8, 2018
config.w32 PHPC-1251: Upgrade libmongoc to 1.12.0 Jul 23, 2018
phongo_compat.c PHPC-1166: Remove inline hint to fix linking issues on Windows May 18, 2018
phongo_compat.h PHPC-1211: Int64 class to wrap 64-bit integers on 32-bit platforms Jun 22, 2018
phongo_version.h The master branch is now 1.6 Jul 2, 2018
php_bson.h Rename free_elements to owns_elements, as that is more descriptive Apr 18, 2018
php_phongo.c Merge branch 'v1.5' Jul 31, 2018
php_phongo.h PHPC-1211: Int64 class to wrap 64-bit integers on 32-bit platforms Jun 22, 2018
php_phongo_classes.h PHPC-1211: Int64 class to wrap 64-bit integers on 32-bit platforms Jun 22, 2018
php_phongo_structs.h PHPC-1211: Int64 class to wrap 64-bit integers on 32-bit platforms Jun 22, 2018
template.rc PHPC-1114: Add template.rc file to embed the right MongoDB version in… Feb 27, 2018

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.