mongodb / mongodb-extension
MongoDB driver extension
Installs: 26
Dependents: 0
Suggesters: 0
Security: 0
Stars: 889
Watchers: 71
Forks: 204
Open Issues: 12
Type:php-ext
Requires
- php: >=7.4,<9
- ext-date: *
- ext-json: *
- v2.x-dev
- v1.x-dev
- v1.20.x-dev
- 1.20.0
- v1.2.x-dev
- 1.2.11
- 1.2.10
- 1.2.9
- 1.2.8
- 1.2.7
- 1.2.6
- 1.2.5
- 1.2.4
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2.0
- 1.2.0alpha3
- 1.2.0alpha2
- 1.2.0alpha1
- v1.1.x-dev
- 1.1.10
- 1.1.9
- 1.1.8
- 1.1.7
- 1.1.6
- 1.1.5
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- v1.0.x-dev
- 1.0.1
- 1.0.0
- 1.0.0RC0
- 1.0.0beta2
- 1.0.0beta1
- 1.0.0alpha2
- 1.0.0alpha1
- 0.6.3
- 0.6.2
- 0.6.1
- 0.6.0
- 0.5.1
- 0.5.0
- 0.4.1
- 0.4.0
- 0.3.1
- 0.3.0
- 0.2.0
- 0.1.5
- 0.1.4
- 0.1.3
- 0.1.2
- 0.1.1
- 0.1.0
- dev-merge-v1.x-into-v2.x-1731680470100
This package is auto-updated.
Last update: 2024-11-15 14:21:14 UTC
README
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.
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
Composer.
Release Integrity
Releases are created automatically and signed using the
PHP team's GPG key. This applies to
the git tag as well as all release packages provided as part of a
GitHub release. To
verify the provided packages, download the key and import it using gpg
:
gpg --import php-driver.asc
PECL package
PECL packages are made available as release artifacts on GitHub, as well as on
the PECL homepage. The GitHub release will also
contain a detached signature file for the PECL package (named
mongodb-X.Y.Z.tgz.sig
).
To verify the integrity of the downloaded package, run the following command:
gpg --verify mongodb-X.Y.Z.tgz.sig mongodb-X.Y.Z.tgz
Note
No verification is done when using pecl
to install the package. To ensure
release integrity when using pecl
, download the tarball manually from the
GitHub release, verify the signature, then install the package from the
downloaded tarball using pecl install mongodb-X.Y.Z.tgz
.
Windows
Windows binaries distributed through GitHub releases contain a detached
signature for the php_mongodb.dll
file named php_mongodb.dll.sig
. To verify
the integrity of the DLL, run the following command:
gpg --verify php_mongodb.dll.sig php_mongodb.dll.tgz
Note
Windows binaries distributed directly through PECL are not signed by MongoDB and cannot be verified. If you need to verify the integrity of the downloaded binary, always download them from the GitHub release.
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.