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.

License: Apache License

Latest releases

Version Release Download
1.14.0beta1 2022-06-08 mongodb-1.14.0beta1.tgz
1.13.0 2022-03-23 mongodb-1.13.0.tgz
1.12.1 2022-02-22 mongodb-1.12.1.tgz
1.12.0 2021-12-14 mongodb-1.12.0.tgz
1.11.1 2021-11-02 mongodb-1.11.1.tgz
Show all releases

Changelog

Version Message
1.14.0beta1 ** Bug
* [PHPC-2088] - Memory leak in php_phongo_zval_to_bson_value
* [PHPC-2089] - Various bson_value_t memory leaks in ClientEncryption methods
* [PHPC-2098] - phongo_clientencryption_init uses wrong signature when compiling without CSFLE

** New Feature
* [PHPC-1899] - getServerConnectionId for command monitoring events
* [PHPC-2005] - Support 'let' option for multiple CRUD commands
* [PHPC-2049] - BulkWrite and Query support comment option of any type
* [PHPC-2085] - autoEncryption options for queryable encryption
* [PHPC-2092] - ClientEncryption options for queryable encryption
* [PHPC-2096] - Implement Manager::getEncryptedFieldsMap()
* [PHPC-2097] - Enable ClientEncryption constructor

** Task
* [PHPC-2053] - Remove mongodb.mock_service_id INI option
* [PHPC-2078] - Allow PECL release-upload.php to verify version constants
* [PHPC-2090] - Add MongoDB 5.0 to load balancer CI matrix

** Improvement
* [PHPC-2087] - Bump maxWireVersion for MongoDB 6.0
* [PHPC-2094] - Relay command comment when constructing a cursor
1.13.0 ** Bug
* [PHPC-2013] - RHEL 7.0 and 7.1 builds fail due to incompatible pointer warnings
* [PHPC-2020] - Validate loadBalanced URI array option

** Epic
* [PHPC-1150] - Support SDAM Monitoring

** New Feature
* [PHPC-1805] - Implement ServerDescription class
* [PHPC-1891] - Implement TopologyDescription class
* [PHPC-1892] - Define SDAMSubscriber interface
* [PHPC-1893] - Define SDAM event classes
* [PHPC-1900] - Allow custom service names with srvServiceName URI option
* [PHPC-1908] - Allow limiting mongos servers with srvMaxHosts option

** Task
* [PHPC-1342] - Add documentation warning against the use of duplicate key names
* [PHPC-1909] - Set minWireVersion to 6 (MongoDB 3.6)
* [PHPC-1953] - Create tests for event object debug handlers
* [PHPC-1958] - Ensure that getTopologyId() gives the same result for all SDAM events
* [PHPC-1959] - Change SDAM event tests to use Manager::addSubscriber()
* [PHPC-1973] - Bump maxWireVersion to 14 for MongoDB 5.1
* [PHPC-2008] - writeresult-getserver-002 fails to drop collection in local db on replicaset-auth
* [PHPC-2012] - Remove extra AX_CHECK_COMPILE_FLAG args
* [PHPC-2019] - Remove Solaris checks in m4 build scripts
* [PHPC-2022] - Use mongoc_host_list in event structs
* [PHPC-2023] - Allow observation of TopologyClosedEvent
* [PHPC-2028] - Replace PHONGO_ALLOC_OBJECT_T macro with zend_object_alloc
* [PHPC-2031] - Upgrade libmongoc to 1.21.1 and libmongocrypt to 1.3.2
* [PHPC-2034] - Bump maxWireVersion for MongoDB 5.2
* [PHPC-2036] - Remove outdated prose test in causal consistency spec
* [PHPC-2037] - Remove vim modeline comments
* [PHPC-2038] - Initialize zval in phongo_clientencryption_init
* [PHPC-2039] - Remove disabled debugging code in bson.c
* [PHPC-2040] - Break down php_phongo.c into smaller files
* [PHPC-2042] - Remove conditional win32/time.h include in UTCDateTime.c
* [PHPC-2047] - Update load balancer tests to support dedicated load balancer port
* [PHPC-2073] - Remove test environments and checks for pre-3.6 server versions
* [PHPC-2074] - Clarify in contributing docs that mongo-orchestration is not required to run tests

** Improvement
* [PHPC-1647] - Defer to libmongoc for cross-option URI validation
* [PHPC-1910] - Implement Server::getServerDescription
* [PHPC-1925] - ServerDescription::getType() should return a string
* [PHPC-1934] - Check for uninitialized intern in ServerDescription get_properties_hash
* [PHPC-1950] - Lift restriction on authSource without credentials when set in URI options array
* [PHPC-2003] - Expose whether a client session is dirty
* [PHPC-2025] - Support load balancer in ServerDescription and TopologyDescription
* [PHPC-2026] - Warn if ServerDescription::getLastUpdateTime() must be truncated
* [PHPC-2030] - Allow observation of commands issued during mongoc_client_destroy()
* [PHPC-2032] - Report more concise debug info for ended sessions
1.12.1 ** Task
* [PHPC-2027] - Add PHP 8.1 to AppVeyor build matrix
* [PHPC-2071] - Upgrade libbson and libmongoc to 1.20.1
1.12.0 ** Epic
* [PHPC-1850] - Support PHP 8.1
* [PHPC-1912] - CSFLE 1.0 KMIP Support

** New Feature
* [PHPC-2009] - Support tlsOptions encryption option

** Task
* [PHPC-1878] - Unexpected primary step down when testing on MongoDB latest
* [PHPC-1880] - Drop support for PHP 7.1
* [PHPC-1931] - Add PHP 8.1 to PHP toolchain
* [PHPC-1997] - Update calls to deprecated bson_atomic_int_add function
* [PHPC-2011] - Upgrade libmongoc to 1.20.0 and libmongocrypt to 1.3.0

** Improvement
* [PHPC-1942] - Support BSON Binary subtype 0x07 (column)
* [PHPC-2004] - Specify string return type in __toString() arginfos
* [PHPC-2007] - Explicitly implement Stringable for PHP 8+
* [PHPC-2010] - Type validation for autoEncryption.extraOptions
1.11.1 ** Bug
* [PHPC-1993] - Bump libmongoc requirement in config.m4 to 1.19.1

** Task
* [PHPC-1994] - Fix Evergreen builds for testing different libmongoc versions
* [PHPC-1995] - Use https:// instead of git:// for git clone
Show complete changelog