mongodb

MongoDB driver for PHP


The purpose of this driver is to provide exceptionally thin glue between MongoDB and PHP, implementing only fundamental and performance-critical components necessary to build a fully-functional MongoDB driver.

Windows builds are attached to GitHub releases: https://github.com/mongodb/mongo-php-driver/releases

License: Apache License

Latest releases

Version Release Download
1.18.0 2024-03-27 mongodb-1.18.0.tgz
1.17.3 2024-03-15 mongodb-1.17.3.tgz
1.17.2 2023-12-20 mongodb-1.17.2.tgz
1.17.1 2023-12-05 mongodb-1.17.1.tgz
1.17.0 2023-11-15 mongodb-1.17.0.tgz
Show all releases

Changelog

Version Message
1.18.0 ** Task
* [PHPC-1956] - Remove disabled __wakeup function for classes that disable serialization
* [PHPC-2320] - Remove empty string key replacement logic in json_canonicalize()
* [PHPC-2358] - Upgrade libmongocrypt to 1.9.0
* [PHPC-2360] - Upgrade libmongoc to 1.26.0
* [PHPC-2363] - Upgrade libmongocrypt to 1.9.1
* [PHPC-2364] - Upgrade libmongoc to 1.26.1
* [PHPC-2366] - Invoke all Drivers Evergreen Tools Scripts with Bash
1.17.3 ** Task
* [PHPC-2339] - Upgrade libmongoc to 1.25.4
* [PHPC-2340] - Upgrade libmongocrypt to 1.8.4
1.17.2 ** Bug
* [PHPC-2337] - Performance degradation in 1.17 due to trace logging

** Task
* [PHPC-2335] - Replace usage of hub with gh in GitHub Action workflows
1.17.1 ** Bug
* [PHPC-2325] - Null coalesce operator doesn't silence exception when accessing non-existent BSON field
* [PHPC-2328] - Wrong parameter names for BSON classes implementing ArrayAccess
* [PHPC-2332] - Fix bson_strerror_r compatibility for AIX

** Task
* [PHPC-2322] - Remove ICU and add SRV to phpinfo() output
* [PHPC-2334] - Upgrade libmongoc to 1.25.2
1.17.0 ** Build Failure
* [PHPC-2287] - strict-prototypes build error when compiling with PHP 7.4 and 8.0
** Bug
* [PHPC-2225] - Validate PHP_ARG_ENABLE and PHP_ARG_WITH configure options
* [PHPC-2275] - PHP version check in configure fails on Alpine
** Epic
* [PHPC-2256] - Build configuration improvements
** New Feature
* [PHPC-1000] - Allow MongoDB\BSON\Serializable to yield BSON document and array instances
* [PHPC-2180] - Allow applications to register a LogSubscriber globally
* [PHPC-2267] - Support BSON Binary subtype 0x08 (sensitive)
* [PHPC-2280] - Prefer OpenSSL on MacOS to avoid segmentation faults in php-fpm
** Task
* [PHPC-1218] - Fix warning for missing M4 include files during PECL install
* [PHPC-2155] - Remove prefixes for quoted shell variable references
* [PHPC-2194] - Resolve warnings when building with autoconf 2.70+
* [PHPC-2230] - Drop support for PHP 7.2 and 7.3
* [PHPC-2259] - Sync BSON corpus tests for Decimal128 values with large exponents
* [PHPC-2272] - Remove as_var_copy.m4
* [PHPC-2274] - Apply libmongocrypt definitions to PHP_MONGODB_LIBMONGOCRYPT_CFLAGS
* [PHPC-2282] - Remove trace logs during BSON encoding
* [PHPC-2283] - Regenerate function arginfo using a stable version of PHP 8.2
* [PHPC-2285] - Upgrade libmongocrypt to 1.8.2
* [PHPC-2300] - Rename output variables for bundled libbson version constants
* [PHPC-2302] - Rename output variables for bundled libmongoc version constants
* [PHPC-2308] - Handle unknown and universal cases for AC_C_BIGENDIAN
* [PHPC-2311] - Note with-libbson and with-libmongoc deprecation in configure help text
* [PHPC-2312] - Remove substitution of MONGOC_ENABLE_SASL_GSSAPI in CheckSasl.m4
* [PHPC-2314] - Require OpenSSL 1.0.1+ in CheckSSL.m4 to satisfy libmongoc requirements
* [PHPC-2315] - Use PKG_CHECK_MODULES for detecting libmongoc, libbson, and libmongocrypt
* [PHPC-2317] - Upgrade libmongoc to 1.25.0
* [PHPC-2319] - Upgrade libmongoc to 1.25.1
** Improvement
* [PHPC-1017] - Allow configure options to be specified with PECL install
* [PHPC-2219] - Prohibit serializing PackedArray instances as root documents
* [PHPC-2245] - Implement ArrayAccess for BSON PackedArray instances
* [PHPC-2246] - Implement ArrayAccess and property access for BSON document instances
* [PHPC-2262] - Replace ICU dependency with vendored utf8proc library
* [PHPC-2266] - Collect FaaS platform information as part of the environment information in driver handshake metadata
* [PHPC-2269] - Provide internal iterator implementation for BSON iterator class
* [PHPC-2289] - Prohibit passing LogSubscriber to Manager::addSubscriber()
Show complete changelog