Docs Menu
Docs Home
/
PHP Library Manual

What's New

On this page

  • What's New in 1.20
  • What's New in 1.18
  • What's New in 1.17
  • What's New in 1.16
  • What's New in 1.15

Learn about new features, improvements, and fixes introduced in the following versions of the MongoDB PHP Library:

  • Version 1.20

  • Version 1.18

  • Version 1.17

  • Version 1.16

  • Version 1.15

Important

MongoDB Server v3.6 End-of-Life

Support for MongoDB Server v3.6 is removed in this release of the library.

  • Adds support for MongoDB Server v8.0.

To learn more about this release, see the v1.18 Release Notes on GitHub.

  • Introduces a new "codec" API for converting BSON to and from PHP objects. More information on this feature may be found in the Codecs tutorial.

  • Adds MongoDB\add_logger() and MongoDB\remove_logger() functions to the library. These functions allow applications to register a PSR-3 Logger to receive log messages emitted by the driver. Previously, logs were only available through the extension's mongodb.debug INI setting.

  • Introduces new MongoDB\Collection methods to create and manage Atlas Search indexes. Atlas Search indexes can be queried using the $search aggregation pipeline stage, which is supported in all versions of the library. To learn more about Atlas Search indexes and the specifics of the $search aggregation stage, see the Atlas Search indexes documentation and $search.

  • Upgrades the mongodb extension requirement to 1.17.0. Support for PHP 7.2 and 7.3 has been removed and the library now requires PHP 7.4 or newer.

To learn more about this release, see the v1.17 Release Notes on GitHub.

To learn more about this release, see the v1.16 Release Notes on GitHub.

  • Adds new examples/ and tools/ directories to the library repository, which contain code snippets and scripts that may prove useful when writing or debugging applications. These directories are intended to supplement the library's existing documentation and will be added to over time.

  • Adds various backwards compatible typing improvements throughout the library. Downstream impact for these changes are discussed in UPGRADE-1.15.md.

  • Integrates Psalm for static analysis.

  • Upgrades the mongodb extension requirement to 1.15.0.

To learn more about this release, see the v1.15 Release Notes on GitHub.

Back

Compatibility