-
Couldn't load subscription status.
- Fork 211
Releases: mongodb/mongo-php-driver
2.1.4
The PHP team is happy to announce that version 2.1.4 of the mongodb PHP extension is now available on PECL.
Release Highlights
This version upgrades the bundled libmongoc library to 1.30.6 and fixes a memory allocation issue when copying command options.
A complete list of resolved issues in this release may be found in JIRA.
Documentation
Documentation is available on PHP.net.
Installation
You can either download and install the source manually, or you can install the extension with:
pecl install mongodb-2.1.4
or update with:
pecl upgrade mongodb-2.1.4
Windows binaries are attached to the GitHub release notes.
Assets 25
- sha256:e6af81dd118b8f59f7fa79ca91dd066bbc09ba4a686d7d14a47deff725e64cb82.79 KB
2025年10月08日T15:34:52Z - sha256:a5d09090fec30f1a8c26d0ea2f2b36583e1a2ca2b74754a3aad9753193a2a5e12.03 MB
2025年10月08日T15:31:15Z - sha256:ac7aa10a60442a00ff7374e2f27f7e2b1eed72a8dafc0c60799d3df0253ed7e9833 Bytes
2025年10月08日T15:31:15Z - sha256:3aa91f098d612f719570ef1132fe8820df137f51d419c645d37e643a3a6e1a762.94 MB
2025年10月08日T15:30:48Z - sha256:03ee177b3a13ca78aa22818a88654b6a19d4998c8e728f07d3d88a952be2efa92.95 MB
2025年10月08日T15:32:02Z - sha256:2a7f097f24972f85f4c0c06da79694ec21e88ff05ebd167edae8ad5d9ccd65e32.94 MB
2025年10月08日T15:31:05Z - sha256:db3eb85460251bfcca9e9b23756ae7f044e4d25f76acde91239d390fc61f45b32.95 MB
2025年10月08日T15:30:05Z - sha256:cf625243e2a5a96007c7d5a2b6e484f325e88ac90d4b9f7fd97cb2a3d150dfd82.97 MB
2025年10月08日T15:30:15Z - sha256:9e3eee2ed5a300330e6bc66dd7a2601976502cdffd278b3641ae4141a417b4df3.01 MB
2025年10月08日T15:29:57Z - sha256:a0835590885124f329e5d1124525d380e22b1c945f0f420cdba0273533638a862.97 MB
2025年10月08日T15:29:55Z -
2025年10月08日T15:27:01Z -
2025年10月08日T15:27:01Z - Loading
2.1.3
The PHP team is happy to announce that version 2.1.3 of the mongodb PHP extension is now available on PECL.
Release Highlights
Note: this release was the result of a packaging error and is functionally identical to 2.1.2.
A complete list of resolved issues in this release may be found in JIRA.
Documentation
Documentation is available on PHP.net.
Installation
You can either download and install the source manually, or you can install the extension with:
pecl install mongodb-2.1.3
or update with:
pecl upgrade mongodb-2.1.3
Windows binaries are attached to the GitHub release notes.
Assets 25
1.21.2
The PHP team is happy to announce that version 1.21.2 of the mongodb PHP extension is now available on PECL.
Release Highlights
This version upgrades the bundled libmongoc library to 1.30.6 and fixes a memory allocation issue when copying command options.
A complete list of resolved issues in this release may be found in JIRA.
Documentation
Documentation is available on PHP.net.
Installation
You can either download and install the source manually, or you can install the extension with:
pecl install mongodb-1.21.2
or update with:
pecl upgrade mongodb-1.21.2
Windows binaries are attached to the GitHub release notes.
Assets 21
2.1.2
The PHP team is happy to announce that version 2.1.2 of the mongodb PHP extension is now available on PECL.
Release Highlights
This release adds support for PHP 8.5.
A complete list of resolved issues in this release may be found in JIRA.
Documentation
Documentation is available on PHP.net.
Installation
You can either download and install the source manually, or you can install the extension with:
pecl install mongodb-2.1.2
or update with:
pecl upgrade mongodb-2.1.2
Windows binaries are attached to the GitHub release notes.
Assets 25
2.1.1
The PHP team is happy to announce that version 2.1.1 of the mongodb PHP extension is now available on PECL.
Release Highlights
This version upgrades the bundled libmongoc library to 1.30.5 to fix UTF-8 validation errors.
A complete list of resolved issues in this release may be found in JIRA.
Documentation
Documentation is available on PHP.net.
Installation
You can either download and install the source manually, or you can install the extension with:
pecl install mongodb-2.1.1
or update with:
pecl upgrade mongodb-2.1.1
Windows binaries are attached to the GitHub release notes.
Assets 21
1.21.1
The PHP team is happy to announce that version 1.21.1 of the mongodb PHP extension is now available on PECL.
Release Highlights
This version upgrades the bundled libmongoc library to 1.30.5 to fix UTF-8 validation errors.
A complete list of resolved issues in this release may be found in JIRA.
Please note that version 2 of the MongoDB Driver for PHP has been released. Support for version 1 of the driver will end on April 10, 2026.
Documentation
Documentation is available on PHP.net.
Installation
You can either download and install the source manually, or you can install the extension with:
pecl install mongodb-1.21.1
or update with:
pecl upgrade mongodb-1.21.1
Windows binaries are attached to the GitHub release notes.
Assets 21
2.1.0
The PHP team is happy to announce that version 2.1.0 of the mongodb PHP extension is now available on PECL.
Release Highlights
This release introduces support for the new bulkwrite command added in MongoDB 8.0. The bundled libmongoc dependency is bumped to 1.30.4, and support for MongoDB 4.0 has been removed.
A complete list of resolved issues in this release may be found in JIRA.
Documentation
Documentation is available on PHP.net, including for the new BulkWriteCommand class.
Installation
You can either download and install the source manually, or you can install the extension with:
pecl install mongodb-2.1.0
or update with:
pecl upgrade mongodb-2.1.0
Windows binaries are attached to the GitHub release notes.
Assets 21
2.0.0
The PHP team is happy to announce that version 2.0.0 of the mongodb PHP extension is now available on PECL.
Release Highlights
This major release introduces a number of backwards-incompatible changes aimed at simplifying and modernizing the extension's API, cleaning up deprecated functionality, and improving type safety and runtime behavior.
API Cleanups and Removals
- Deprecated constructor options have been removed from the
QueryandManagerclasses. - The
getServer()method and internalManagerreferences have been removed from APM event classes to streamline event data structures. - The
CursorIdclass has been removed;Cursor::getId()now returns anInt64directly. - Support for passing
WriteConcernandReadPreferenceobjects directly to execute methods has been removed in favor of usingreadPreferenceandwriteConcernoptions. - Legacy exceptions such as
WriteExceptionandSSLConnectionExceptionhave been removed.
Stronger Typing and Safer APIs
- The
UTCDateTimeconstructor no longer accepts strings or floats. It now only accepts integer millisecond timestamps or instances ofDateTimeInterface. WriteResultgetters will now throw exceptions when called on unacknowledged writes, making error states more explicit.- The
ReadPreferenceclass now requires string mode constants in its constructor. Support for legacy integer constants has been removed.
Deprecation and Legacy Cleanup
- The
Serializableinterface has been removed from BSON classes, following its deprecation in PHP 8.1. - All deprecated global BSON functions have been removed; users should use methods on the
Documentclass instead. - Several configure options (
--with-libbson,--with-libmongoc,--enable-system-ciphers,--with-openssl-dir) have been removed to simplify the build process.
New Features and Improvements
CursorInterfacenow extends PHP’s nativeIteratorinterface.UTCDateTimeInterfaceintroduces a newtoDateTimeImmutable()method.- URI options that expect booleans will now throw if a non-boolean value is provided, preventing silent misconfiguration.
Library Upgrades
- The extension now bundles libmongoc 1.30.3, bringing in the latest stability and feature improvements.
Compatibility updates
- This release requires an upgrade to the
mongodb/mongodbComposer library, which introduces compatibility changes for this extension version. Be sure to update your Composer dependencies accordingly. - PHP 8.1+ Required: The minimum required PHP version is now 8.1, as support for older versions (PHP 7.4 and 8.0) has been dropped.
- MongoDB 4.2+ Required: Future versions of the library will require MongoDB 4.2 or later. MongoDB 4.0 support is deprecated.
A complete list of resolved issues in this release may be found in JIRA.
Documentation
Documentation is available on PHP.net.
Installation
You can either download and install the source manually, or install the extension via PECL:
pecl install mongodb-2.0.0
Or update an existing installation with:
pecl upgrade mongodb-2.0.0
Windows binaries are attached to the GitHub release notes.
Assets 21
1.21.0
The PHP team is happy to announce that version 1.21.0 of the mongodb PHP extension is now available on PECL.
Release Highlights
This release adds a few quality of life features:
- Support for the
sortoption inreplaceOneandupdateOneoperations was added to better control which documents get updated - When using array access on
MongoDB\BSON\Documentinstances, integers are now accepted to access numeric keys in a BSON document
In this release, we also deprecated a number of features in preparation for an upcoming 2.0 release:
- Float arguments when constructing
MongoDB\BSON\UTCDateTimeare now deprecated - Passing a
WriteConcernorReadPreferenceinstance to theexecuteQuery,executeCommand,executeReadCommand,executeReadWriteCommand, andexecuteWriteCommandmethods inMongoDB\Driver\ManagerandMongoDB\Driver\Serveris deprecated. Please use the correspondingwriteConcernandreadPreferenceoptions instead. - Passing a negative
limitoption to queries is now deprecated. Instead of negative limits, use a positivelimitoption and use thesingleBatchoption to receive to only receive a single batch of results.
This release drops support for PHP 7.4 and PHP 8.0 - PHP 8.1 is now the minimum version for the PHP driver. The libmongoc and libmongocrypt dependencies have been bumped to 1.30.1 and 1.12.0 respectively.
Support for MongoDB 4.0 is now deprecated. A future release of the driver will bump the minimum requirement to MongoDB 4.2.
A complete list of resolved issues in this release may be found in JIRA.
Documentation
Documentation is available on PHP.net.
Installation
You can either download and install the source manually, or you can install the extension with:
pecl install mongodb-1.21.0
or update with:
pecl upgrade mongodb-1.21.0
Windows binaries are attached to the GitHub release notes.
Assets 21
1.20.1
The PHP team is happy to announce that version 1.20.1 of the mongodb PHP extension is now available on PECL.
Release Highlights
This release updates the bundled versions of libmongoc and libmongocrypt to 1.28.1.
A complete list of resolved issues in this release may be found in JIRA.
Documentation
Documentation is available on PHP.net.
Installation
You can either download and install the source manually, or you can install the extension with:
pecl install mongodb-1.20.1
or update with:
pecl upgrade mongodb-1.20.1
Windows binaries are attached to the GitHub release notes.