MongoDB PHP Extension 1.13.0 Released
Rate this announcement
MongoDB\Driver\Manager::\_\_construct()supports two new URI options:
srvMaxHostsmay be used with sharded clusters to limit the number of hosts that will be added to a seed list following the initial SRV lookup.
srvServiceNamemay 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\SDAMSubscriberinterface and registering the subscriber globally or for a single Manager using
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.
You can either download and install the source manually, or you can install the extension with:
pecl install mongodb-1.13.0or update with:
pecl upgrade mongodb-1.13.0