PHP
MongoDB Developer Centerchevron-right
Developer Topicschevron-right
Languageschevron-right
PHPchevron-right

MongoDB PHP Extension 1.13.0 Released

Rachelle PalmerPublished May 24, 2022 • Updated May 24, 2022
PHP
Copy Link
facebook icontwitter iconlinkedin icon
random alt
Rate this announcement
star-empty
star-empty
star-empty
star-empty
star-empty
The PHP team is happy to announce that version 1.13.0 of the mongodb PHP extension is now available on PECL. Thanks also to our intern for 1.13.0, Tanil Su, who added functionality for server discovery and monitoring!

Release Highlights

MongoDB\Driver\Manager::\_\_construct() supports two new URI options: srvMaxHosts and srvServiceName.
  • srvMaxHosts may be used with sharded clusters to limit the number of hosts that will be added to a seed list following the initial SRV lookup.
  • srvServiceName may be used with self-managed deployments to customize the default service name (i.e. “mongodb”).
This release introduces support for SDAM Monitoring, which applications can use to monitor internal driver behavior for server discovery and monitoring. Similar to the existing command monitoring API, applications can implement the MongoDB\Driver\Monitoring\SDAMSubscriber interface and registering the subscriber globally or for a single Manager using MongoDB\Driver\Monitoring\addSubscriber() or MongoDB\Driver\Manager::addSubscriber, respectively. In addition to many new event classes, this feature introduces the ServerDescription and TopologyDescription classes.
This release also upgrades our libbson and libmongoc dependencies to 1.21.1. The libmongocrypt dependency has been upgraded to 1.3.2.
Note that support for MongoDB 3.4 and earlier has been removed.
A complete list of resolved issues in this release may be found at: https://jira.mongodb.org/secure/ReleaseNote.jspa?projectId=12484&version=32494

Documentation

Documentation is available on PHP.net: http://php.net/set.mongodb

Installation

You can either download and install the source manually, or you can install the extension with:
pecl install mongodb-1.13.0 or update with:
pecl upgrade mongodb-1.13.0
Windows binaries are available on PECL: http://pecl.php.net/package/mongodb

Copy Link
facebook icontwitter iconlinkedin icon
Rate this announcement
star-empty
star-empty
star-empty
star-empty
star-empty
Related
Quickstart
Getting Set Up to Run PHP with MongoDB

Sep 23, 2022
Code Example
Go-FIFA

Jul 07, 2022
Quickstart
Creating, Reading, Updating, and Deleting MongoDB Documents with PHP

Sep 23, 2022
Podcast
Exploring the PHP Driver with Jeremy Mikola - Podcast Episode

May 16, 2022
Table of Contents
  • Release Highlights