Skip to content
PHP Python C M4 Shell C++ Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.appveyor
.evergreen PHPC-1442: Remove PHP 5.6 from testing Feb 11, 2020
.github/ISSUE_TEMPLATE Add header for bug report template Dec 23, 2019
.travis.scripts PHPC-1499: Add build without FLE support to travis-ci Jan 22, 2020
bin PHPC-1442: Drop support for PHP 5 in PECL packaging Feb 11, 2020
scripts PHPC-1496: Add support for compiling with libmongocrypt Jan 8, 2020
src Merge branch 'v1.7' Feb 13, 2020
tests PHPC-1442: Remove obsolete macros from phongo_compat.h Feb 11, 2020
.appveyor.yml Test each combination of x64/x86 and ZTS for PHP 7.1 Dec 4, 2019
.clang-format
.gitignore Add preliminary Evergreen Config Feb 14, 2019
.gitmodules PHPC-1496: Use https URL for libmongocrypt submodule Jan 20, 2020
.llvm-cov.sh
.travis.yml PHPC-1442: Remove PHP 5.6 from testing Feb 11, 2020
CONTRIBUTING.md PHPC-1546: Ensure Windows builds enable SASL and FLE Jan 31, 2020
CREDITS PHPC-1114: Add template.rc file to embed the right MongoDB version in… Feb 27, 2018
LICENSE
Makefile.frag PHPC-1496: Add support for compiling with libmongocrypt Jan 8, 2020
README.md Revise embed code for Coveralls badge May 30, 2019
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.7' Feb 13, 2020
config.w32 PHPC-1496: Fix Windows build for libmongocrypt crypto Jan 31, 2020
phongo_compat.c PHPC-1442: Remove empty TSRMLS macros Feb 11, 2020
phongo_compat.h PHPC-1442: Remove empty TSRMLS macros Feb 11, 2020
phongo_version.h Master branch is now 1.8-dev Feb 4, 2020
php_bson.h
php_phongo.c PHPC-1442: Remove empty TSRMLS macros Feb 11, 2020
php_phongo.h PHPC-1442: Remove empty TSRMLS macros Feb 11, 2020
php_phongo_classes.h PHPC-1442: Drop conditionals for PHP 5 support Feb 11, 2020
php_phongo_structs.h PHPC-1442: Remove PHONGO_ZEND_OBJECT_* macros Feb 11, 2020
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.

You can’t perform that action at this time.