MongoDB PHP Library 1.12.0 Released

The PHP team is happy to announce that version 1.12.0 of the MongoDB PHP library is now available.

Release Highlights

MongoDB\Database::listCollections() now supports an authorizedCollections option, which is supported by MongoDB 4.0 and later.

The MongoDB\Collection::mapReduce() method has been deprecated. This corresponds to the deprecation of the mapReduce command in MongoDB 5.0. Users currently relying on mapReduce are encouraged to migrate to using the aggregation framework (see: Map-Reduce to Aggregation Pipeline).

This release upgrades the mongodb extension requirement to 1.13.0. Support for MongoDB 3.4 and earlier has been removed.

A complete list of resolved issues in this release may be found at:


Documentation for this library may be found at:


This library may be installed or upgraded with:

composer require mongodb/mongodb^1.12.0

Installation instructions for the mongodb extension may be found in the documentation.