| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| cyclonedx.sbom.json | 2026-08-18 | 9.1 kB | |
| 2.4.0 source code.tar.gz | 2026-08-18 | 227.2 kB | |
| 2.4.0 source code.zip | 2026-08-18 | 638.1 kB | |
| README.md | 2026-08-18 | 3.5 kB | |
| Totals: 4 Items | 877.9 kB | 0 | |
The PHP team is happy to announce that version 2.4.0 of the MongoDB PHP library is now available.
Release Highlights
- PHPLIB-1624 Add
$rankFusionstage and$sigmoidexpression by @GromNaN in https://github.com/mongodb/mongo-php-library/pull/1885 - PHPLIB-1755: Implement
$hashand$hexHashoperators by @paulinevos in https://github.com/mongodb/mongo-php-library/pull/1887 - PHPLIB-1763 Add
$rerankstage by @GromNaN in https://github.com/mongodb/mongo-php-library/pull/1892 - DRIVERS-3088: Support new search operators and argument by @paulinevos in https://github.com/mongodb/mongo-php-library/pull/1894
- PHPLIB-1735 Implement
returnStoredSourcein$vectorSearchby @paulinevos in https://github.com/mongodb/mongo-php-library/pull/1896 - PHPLIB-1386 Add $out stage with object encoding, db/coll fields, and timeseries support by @GromNaN in https://github.com/mongodb/mongo-php-library/pull/1903
- PHPLIB-1691 Add $similarityCosine, $similarityDotProduct, and $similarityEuclidean expression operators by @GromNaN in https://github.com/mongodb/mongo-php-library/pull/1902
- PHPLIB-1739 Add builder support for the vectorSearch search operator by @GromNaN in https://github.com/mongodb/mongo-php-library/pull/1908
- PHPLIB-1761 Add builder support for $top, $bottom, $topN, $bottomN expression operators by @GromNaN in https://github.com/mongodb/mongo-php-library/pull/1910
- PHPLIB-1795: Support
flatindexing method for vector search by @paulinevos in https://github.com/mongodb/mongo-php-library/pull/1917 - PHPLIB-1715: Allow string to object conversion by @paulinevos in https://github.com/mongodb/mongo-php-library/pull/1914
- PHPLIB-1844: Support range in PHP doc types by @paulinevos in https://github.com/mongodb/mongo-php-library/pull/1916
- PHPLIB-1733: Support nested fields in
vectorSearchby @paulinevos in https://github.com/mongodb/mongo-php-library/pull/1912 - PHPLIB-1715: Support string to array conversion by @paulinevos in https://github.com/mongodb/mongo-php-library/pull/1915
- PHPLIB-1818: Support regex in $replaceOne find argument by @GromNaN in https://github.com/mongodb/mongo-php-library/pull/1925
- PHPLIB-1841: Support
doesNotAffectarg for relevant operators by @paulinevos in https://github.com/mongodb/mongo-php-library/pull/1927 - PHPLIB-1760: Support EJSON serialization/deserialization by @paulinevos in https://github.com/mongodb/mongo-php-library/pull/1928
- PHPLIB-1771: Add
arrayIndexAssupport for$filterand$reduceoperators by @GromNaN in https://github.com/mongodb/mongo-php-library/pull/1936 - PHPLIB-1734: Add query and model arguments for automated embedding to $vectorSearch stage by @GromNaN in https://github.com/mongodb/mongo-php-library/pull/1937
- Reduce round trips in GridFS delete and chunk lookups by @GromNaN in https://github.com/mongodb/mongo-php-library/pull/1959
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.4.0
Installation instructions for the mongodb extension may be found in the PHP.net documentation.