| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| cyclonedx.sbom.json | 2026-02-11 | 4.7 kB | |
| 2.2.0 source code.tar.gz | 2026-02-11 | 205.5 kB | |
| 2.2.0 source code.zip | 2026-02-11 | 581.6 kB | |
| README.md | 2026-02-11 | 1.2 kB | |
| Totals: 4 Items | 793.0 kB | 1 | |
The PHP team is happy to announce that version 2.2.0 of the MongoDB PHP library is now available.
Release Highlights
This release adds support for the $createObjectIds aggregation pipeline operator, $concatArrays and $setUnion accumulators, and the $scoreFusion pipeline stage. When using findOneAndUpdate, you can now pass a Pipeline instance when using pipeline updates. The MongoDB\Model\CollectionInfo class supports a new isView method, and we added the MongoDB\Database::getGridFSBucket method for consistency with MongoDB\Database::getCollection.
A complete list of resolved issues in this release may be found in JIRA.
Documentation
Documentation for this library may be found in the PHP Library Manual.
Installation
This library may be installed or upgraded with:
composer require mongodb/mongodb:2.2.0
Installation instructions for the mongodb extension may be found in the PHP.net documentation.