Skip to content
PHP Other
  1. PHP 99.4%
  2. Other 0.6%
Branch: master
Clone or download
Latest commit 546f928 Feb 14, 2020
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/ISSUE_TEMPLATE Update new issue template Jul 16, 2019
.phpcs PHPLIB-330: Add first version of our coding standard Aug 26, 2019
.travis Fix core file debug script Jan 31, 2020
docs PHPLIB-497: Allow passing hint to findAndModify update/replace ops Feb 14, 2020
mongo-orchestration PHPLIB-461: Lower periodicNoopIntervalSecs Nov 15, 2019
src PHPLIB-497: Allow passing hint to findAndModify update/replace ops Feb 14, 2020
tests PHPLIB-497: Allow passing hint to findAndModify update/replace ops Feb 14, 2020
.gitignore PHPLIB-511: Ignore mongocryptd.pid files in all folders Jan 22, 2020
.travis.yml Drop support for PHP 5 Feb 11, 2020
CONTRIBUTING.md Document coding standard in CONTRIBUTING.md Aug 26, 2019
LICENSE Specify Apache 2 license Dec 19, 2014
Makefile Use Composer-installed PHPUnit for make test Dec 5, 2016
README.md
composer.json Require use of PHP 7 features in coding standard Feb 11, 2020
phpcs.xml.dist Require use of PHP 7 features in coding standard Feb 11, 2020
phpunit.xml.dist PHPLIB-462: Allow installing the latest PHPUnit release Aug 9, 2019

README.md

MongoDB PHP Library

Build Status

This library provides a high-level abstraction around the lower-level PHP driver (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.

Additional information about the architecture of this library and the mongodb extension may be found in Architecture Overview.

Documentation

Installation

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

$ composer require mongodb/mongodb

Additional installation instructions may be found in the library documentation.

Since this library is a high-level abstraction for the driver, it also requires that the mongodb extension be installed:

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

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

Reporting Issues

Issues pertaining to the library should be reported in the PHPLIB project in MongoDB's JIRA. Extension-related issues should be reported in the PHPC 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 PHPLIB 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.