bztang-admin/vendor/mongodb/mongodb
wuhui_zzw 819d549907 初始化 2023-09-25 17:52:31 +08:00
..
.evergreen 初始化 2023-09-25 17:52:31 +08:00
.github/ISSUE_TEMPLATE 初始化 2023-09-25 17:52:31 +08:00
.phpcs 初始化 2023-09-25 17:52:31 +08:00
.travis 初始化 2023-09-25 17:52:31 +08:00
docs 初始化 2023-09-25 17:52:31 +08:00
mongo-orchestration 初始化 2023-09-25 17:52:31 +08:00
src 初始化 2023-09-25 17:52:31 +08:00
tests 初始化 2023-09-25 17:52:31 +08:00
.gitignore 初始化 2023-09-25 17:52:31 +08:00
.travis.yml 初始化 2023-09-25 17:52:31 +08:00
CONTRIBUTING.md 初始化 2023-09-25 17:52:31 +08:00
LICENSE 初始化 2023-09-25 17:52:31 +08:00
Makefile 初始化 2023-09-25 17:52:31 +08:00
README.md 初始化 2023-09-25 17:52:31 +08:00
phpcs.xml.dist 初始化 2023-09-25 17:52:31 +08:00
phpunit.evergreen.xml 初始化 2023-09-25 17:52:31 +08:00
phpunit.xml.dist 初始化 2023-09-25 17:52:31 +08:00

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.