The PHP team is happy to announce that version 1.9.0 of the MongoDB PHP library is now available. This release adds support for new features in MongoDB 5.0.
aggregate() methods now support a
let option. A document may be specified to define variables that will then be accessible within the pipeline. This feature requires MongoDB 5.0 and is described in more detail in the
aggregate command reference.
Database::createCollection() supports creation of time series collections using new
expireAfterSeconds options. This feature requires MongoDB 5.0 and is described in more detail in the
create command reference.
The CollectionInfo class returned by
Database::listCollections() has several new methods to improve access to the server’s result objects:
getType() , and
getIdIndex() . Additionally, the
getCappedSize() , and
isCapped() methods have been deprecated.
This release upgrades the
mongodb extension requirement to 1.10.0. Support for PHP 7.0 has been removed and the library now requires PHP 7.1 or newer.
A complete list of resolved issues in this release may be found at: https://jira.mongodb.org/secure/ReleaseNote.jspa?projectId=12483&version=30262
Documentation for this library may be found at:
This library may be installed or upgraded with:
composer require mongodb/mongodb^1.9.0
Installation instructions for the
mongodb extension may be found in the PHP.net documentation.
Thanks for our community contributors for 1.9.0: