MongoDB PHP Extension 1.14.0 Released

The PHP team is happy to announce that version 1.14.0 of the mongodb PHP extension is now available on PECL. This release introduces support for MongoDB 6.0 and Queryable Encryption.

Release Highlights

To support Queryable Encryption, encryptedFieldsMap and bypassQueryAnalysis auto encryption options have been added to MongoDB\Driver\Manager::__construct() . Additionally, new algorithms and a queryType option have been added to MongoDB\Driver\ClientEncryption::encrypt() . Support for the Automatic Encryption Shared Library, an alternative to mongocryptd , has also been introduced.

MongoDB\Driver\BulkWrite and MongoDB\Driver\Query support a let option for defining variables that can be accessed within query filters and updates. Additionally, both classes now support a comment option of any type (previously a string comment was only supported for queries).

This release upgrades our libbson and libmongoc dependencies to 1.22.0. The libmongocrypt dependency has been upgraded to 1.5.0.

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.14.0

or update with:

pecl upgrade mongodb-1.14.0

Windows binaries are available on PECL.

1 Like