Download the PHP package mongodb/mongodb-extension without Composer
On this page you can find all versions of the php package mongodb/mongodb-extension. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package mongodb-extension
MongoDB PHP Driver
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
With pie
To install this extension, you need pie installed on your system. pie is a modern tool for managing PHP extensions.
Install the mongodb/mongodb-extension package from Packagist using the following command:
This will automatically download, build, and enable the MongoDB extension for your PHP installation.
Add a version constraint after the extension name to restrict can be installed:
The constraint ^2.1.0 will install the latest version >= 2.1.0 < 3.0.0-dev.
For more details on using pie, see the pie documentation.
with pecl
[!NOTE] Using pecl to install extensions is deprecated.
To build and install the extension:
The MongoDB PHP Driver follows semantic versioning for its releases.
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
[!NOTE] Integrity validation is not yet supported when installing with
pie. If you require signature verification, use the manual or PECL installation methods described below.
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:
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:
[!NOTE] No verification is done when using
peclto install the package. To ensure release integrity when usingpecl, download the tarball manually from the GitHub release, verify the signature, then install the package from the downloaded tarball usingpecl install mongodb-X.Y.Z.tgz.
Windows
Windows binaries are distributed through GitHub releases in the form of a ZIP package. The GitHub release will also contain a detached signature file for the PECL package. To verify the integrity of the package, run the following command:
[!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.