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.20.0 2024-09-24 mongodb-1.20.0.tgz
1.19.4 2024-09-09 mongodb-1.19.4.tgz
1.19.3 2024-06-17 mongodb-1.19.3.tgz
1.19.2 2024-06-06 mongodb-1.19.2.tgz
1.19.1 2024-05-28 mongodb-1.19.1.tgz
Show all releases

Changelog

Version Message
1.20.0 ## What's Changed
* Master is now 1.20-dev by @alcaeus in https://github.com/mongodb/mongo-php-driver/pull/1550
* Merge v1.19 into master by @mongodb-php-bot in https://github.com/mongodb/mongo-php-driver/pull/1553
* Merge v1.19 into master by @mongodb-php-bot in https://github.com/mongodb/mongo-php-driver/pull/1554
* PHPC-2386: Fix build config output without libmongocrypt by @jmikola in https://github.com/mongodb/mongo-php-driver/pull/1557
* Merge v1.19 into master by @mongodb-php-bot in https://github.com/mongodb/mongo-php-driver/pull/1563
* Merge v1.19 into master by @mongodb-php-bot in https://github.com/mongodb/mongo-php-driver/pull/1564
* Merge v1.19 into master by @mongodb-php-bot in https://github.com/mongodb/mongo-php-driver/pull/1566
* Bump mongodb-labs/drivers-github-tools from 1 to 2 by @dependabot in https://github.com/mongodb/mongo-php-driver/pull/1568
* Merge v1.19 into master by @mongodb-php-bot in https://github.com/mongodb/mongo-php-driver/pull/1569
* Merge v1.19 into master by @mongodb-php-bot in https://github.com/mongodb/mongo-php-driver/pull/1570
* Revert "Bump mongodb-labs/drivers-github-tools from 1 to 2" by @alcaeus in https://github.com/mongodb/mongo-php-driver/pull/1571
* Merge v1.19 into master by @mongodb-php-bot in https://github.com/mongodb/mongo-php-driver/pull/1574
* Merge v1.19 into master by @mongodb-php-bot in https://github.com/mongodb/mongo-php-driver/pull/1576
* Merge v1.19 into master by @mongodb-php-bot in https://github.com/mongodb/mongo-php-driver/pull/1578
* PHPC-2395: Fetch Atlas connectivity URIs from AWS Secrets Manager by @jmikola in https://github.com/mongodb/mongo-php-driver/pull/1579
* Merge v1.19 into master by @alcaeus in https://github.com/mongodb/mongo-php-driver/pull/1581
* Merge v1.19 into master by @mongodb-php-bot in https://github.com/mongodb/mongo-php-driver/pull/1580
* Merge v1.19 into master by @mongodb-php-bot in https://github.com/mongodb/mongo-php-driver/pull/1585
* PHPC-2398: Use server_id methods for libmongoc 1.28+ by @jmikola in https://github.com/mongodb/mongo-php-driver/pull/1582
* PHPC-2401: Support QEv2 range protocol by @jmikola in https://github.com/mongodb/mongo-php-driver/pull/1583
* Merge v1.19 into master by @mongodb-php-bot in https://github.com/mongodb/mongo-php-driver/pull/1588
* PHPC-2254: Relax server selection timeout error message pattern by @jmikola in https://github.com/mongodb/mongo-php-driver/pull/1587
* Merge v1.19 into master by @mongodb-php-bot in https://github.com/mongodb/mongo-php-driver/pull/1591
* Merge v1.19 into master by @mongodb-php-bot in https://github.com/mongodb/mongo-php-driver/pull/1592
* Merge v1.19 into master by @mongodb-php-bot in https://github.com/mongodb/mongo-php-driver/pull/1594
* Merge v1.19 into master by @mongodb-php-bot in https://github.com/mongodb/mongo-php-driver/pull/1597
* PHPC-2376: Test against MongoDB 8.0 by @alcaeus in https://github.com/mongodb/mongo-php-driver/pull/1598
* Fix version computation for libmongoc development versions by @alcaeus in https://github.com/mongodb/mongo-php-driver/pull/1599
* Merge v1.19 into master by @mongodb-php-bot in https://github.com/mongodb/mongo-php-driver/pull/1601
* Merge v1.19 into master by @mongodb-php-bot in https://github.com/mongodb/mongo-php-driver/pull/1603
* PHPC-1489: Deprecate integer readPreference constants by @alcaeus in https://github.com/mongodb/mongo-php-driver/pull/1604
* PHPC-2347: Deprecate BSON functions by @alcaeus in https://github.com/mongodb/mongo-php-driver/pull/1607
* Fix failing tests on x86 systems by @alcaeus in https://github.com/mongodb/mongo-php-driver/pull/1609
* PHPC-2349, PHPC-2411: Deprecate unused exception classes by @alcaeus in https://github.com/mongodb/mongo-php-driver/pull/1608
* PHPC-2414, PHPC-2415: Update wire versions for MongoDB 8.0 compatibility by @alcaeus in https://github.com/mongodb/mongo-php-driver/pull/1610
* Merge v1.19 into master by @mongodb-php-bot in https://github.com/mongodb/mongo-php-driver/pull/1613
* PHPC-2286 Implement `UTCDateTime::toDateTimeImmutable` by @GromNaN in https://github.com/mongodb/mongo-php-driver/pull/1611
* PHPC-1957 Add tests for out-of-range `UTCDateTime` values by @GromNaN in https://github.com/mongodb/mongo-php-driver/pull/1614
* Use drivers-evergreen-tools for Windows testing by @alcaeus in https://github.com/mongodb/mongo-php-driver/pull/1615
* Merge v1.19 into master by @mongodb-php-bot in https://github.com/mongodb/mongo-php-driver/pull/1620
* Merge v1.19 into master by @mongodb-php-bot in https://github.com/mongodb/mongo-php-driver/pull/1621
* PHPC-2421, PHPC-2428: Update bundled dependencies by @alcaeus in https://github.com/mongodb/mongo-php-driver/pull/1622
* PHPC-2434: Add PHP 8.4 to GitHub Actions by @alcaeus in https://github.com/mongodb/mongo-php-driver/pull/1625
* PHPC-2420: Initial composer.json for pie support by @alcaeus in https://github.com/mongodb/mongo-php-driver/pull/1624
* Merge v1.19 into master by @mongodb-php-bot in https://github.com/mongodb/mongo-php-driver/pull/1626
* Merge v1.19 into master by @mongodb-php-bot in https://github.com/mongodb/mongo-php-driver/pull/1629
* PHPC-2403: Remove optional sparsity and trimFactor options by @alcaeus in https://github.com/mongodb/mongo-php-driver/pull/1628
* Merge v1.19 into v1.20 by @mongodb-php-bot in https://github.com/mongodb/mongo-php-driver/pull/1633
* PHPC-2412: Deprecate CursorId class by @alcaeus in https://github.com/mongodb/mongo-php-driver/pull/1616
* Fix exception message expectation on MongoDB latest by @alcaeus in https://github.com/mongodb/mongo-php-driver/pull/1637
* Validate composer.json as part of CI workflows by @alcaeus in https://github.com/mongodb/mongo-php-driver/pull/1636
* Update merge-up config by @alcaeus in https://github.com/mongodb/mongo-php-driver/pull/1641
* PHPC-2443: Deprecate string argument and accept Int64 instances in UTCDateTime constructor by @alcaeus in https://github.com/mongodb/mongo-php-driver/pull/1643
* PHPC-2413: Use new distros for RHEL ppc and Z by @alcaeus in https://github.com/mongodb/mongo-php-driver/pull/1647
* PHPC-2442: Deprecate getServer, add getHost and getPort to APM events by @jmikola in https://github.com/mongodb/mongo-php-driver/pull/1644
* Merge v1.19 into v1.20 by @mongodb-php-bot in https://github.com/mongodb/mongo-php-driver/pull/1649
* PHPC-2350: Implement JSON methods for PackedArray by @alcaeus in https://github.com/mongodb/mongo-php-driver/pull/1645
* Update archive names for Windows builds by @alcaeus in https://github.com/mongodb/mongo-php-driver/pull/1655
* Remove usage of deprecated E_STRICT by @alcaeus in https://github.com/mongodb/mongo-php-driver/pull/1668
* PHPC-2448: Update to libmongoc 1.28.0 by @alcaeus in https://github.com/mongodb/mongo-php-driver/pull/1673
* PHPC-2452: Warn if --with-openssl-dir is used by @jmikola in https://github.com/mongodb/mongo-php-driver/pull/1677
* PHPC-2453: Deprecation notice for Query "modifiers" option by @jmikola in https://github.com/mongodb/mongo-php-driver/pull/1680
* Drop RHEL 7.6 from evergreen testing by @alcaeus in https://github.com/mongodb/mongo-php-driver/pull/1682
* PHPC-2456: Correctly dereference arrays in type maps by @alcaeus in https://github.com/mongodb/mongo-php-driver/pull/1683


**Full Changelog**: https://github.com/mongodb/mongo-php-driver/compare/1.19.4...1.20.0
1.19.4 ## What's Changed
* Use full-report convenience action for SSDLC reports by @alcaeus in https://github.com/mongodb/mongo-php-driver/pull/1589
* PHPC-2381: Allow releasing pre-release versions through the release automation by @alcaeus in https://github.com/mongodb/mongo-php-driver/pull/1590
* Revamp evergreen builds and add tags for pull requests by @alcaeus in https://github.com/mongodb/mongo-php-driver/pull/1593
* Add tag checks aliases by @alcaeus in https://github.com/mongodb/mongo-php-driver/pull/1596
* PHPC-2409: Update to libmongoc 1.27.4 by @alcaeus in https://github.com/mongodb/mongo-php-driver/pull/1600
* PHPC-2405: Update to libmongocrypt 1.10.1 by @alcaeus in https://github.com/mongodb/mongo-php-driver/pull/1602
* Reduce amount of evergreen config includes by @alcaeus in https://github.com/mongodb/mongo-php-driver/pull/1612
* PHPC-2422: Update libmongoc to 1.27.5 by @alcaeus in https://github.com/mongodb/mongo-php-driver/pull/1619
* PHPC-2420: Compare Int64 instances without casting by @alcaeus in https://github.com/mongodb/mongo-php-driver/pull/1617
* PHPC-2429: Fix UTCDateTime with negative timestamps by @alcaeus in https://github.com/mongodb/mongo-php-driver/pull/1623
* Update to libmongoc 1.27.6 by @alcaeus in https://github.com/mongodb/mongo-php-driver/pull/1627
* Update GitHub Actions job names by @alcaeus in https://github.com/mongodb/mongo-php-driver/pull/1632


**Full Changelog**: https://github.com/mongodb/mongo-php-driver/compare/1.19.3...1.19.4
1.19.3 ## What's Changed
* PHPC-2380: Add SBOM file and tooling to update it by @alcaeus in https://github.com/mongodb/mongo-php-driver/pull/1577
* PHPC-2384, PHPC-2399, PHPC-2400: Publish SSDLC assets on release by @alcaeus in https://github.com/mongodb/mongo-php-driver/pull/1584
* Manually merge up version bump commits by @alcaeus in https://github.com/mongodb/mongo-php-driver/pull/1586


**Full Changelog**: https://github.com/mongodb/mongo-php-driver/compare/1.19.2...1.19.3
1.19.2 Release 1.19.2

* PHPC-2391: Update drivers tools to v2 by @alcaeus in https://github.com/mongodb/mongo-php-driver/pull/1573
* PHPC-2394: Update libmongoc to 1.27.2 by @jmikola in https://github.com/mongodb/mongo-php-driver/pull/1575

**Full Changelog**: https://github.com/mongodb/mongo-php-driver/compare/1.19.1...1.19.2
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEYB1UFjBzGnj7D2hrJubQdPEfzfsFAmZhv/EACgkQJubQdPEf
zfsJgxAAlFnZuN8RiuXG0j/UZX+j6VVzFDSupI7Z3e8Za5tVYFPfb/XjsvacI20a
x2uD4xgUt4nyLdgAxADkSdEzrGgfxL8Q3tFB3rL3s2NHm+AbIuwmAN7VNi2z59wz
xIxzZtZz8l9/ivBJTueqRTAHbWAobUsFnbI1oK6rj5ycBhhZnxif/etV/1K4UIQM
CddfMms6XJNSWw4PVCW+jNPVIJvO04a0JYSA6/iP13FzxPDLz0K3ebErXD2L2Z+z
PXq/C+VHvmKxI7Dr9TKJ6Mae9kNz5HocxKm3npVWjOZUZlUAGTbFeAyqeDJCMf3W
RU6Epwh/lcEICCdiqwZCoQ+wHQkIwOswAaRau9Fpy99f1/exUWVqqlDWbs3Y4OU5
48zgGBmsOWWCAEyxdtwpWkV8OcqjgOPoO4jfyKjX/dv91fe2mFAQ6dgdk6UV4WXi
4lVJdW/OwcRKJcldGbzGGjUGQXN/sP4Tm1Aqo3OqmfMoOOlQDKoZkXFHDfacRt1k
tUSPj0uhai1ZRO3CzN0UKmrLqX6bBFyq4eJc6l1pkn7jVdsHXYLq+1GM7dm2fCAx
n7KK7USNqsz9w6xEELTl++K9tYyBu9EgcIMjd8rxDNKuLYkteEOlmmZxLRMNB2gT
2ZgtH6PmX+QiXJDKzpboqUodNBvsYlrZQcIsLBWnOIfZAlBAzcE=
=1rMo
-----END PGP SIGNATURE-----
1.19.1 Release 1.19.1

* PHPC-2382: Allow static builds with php-src by @jmikola in https://github.com/mongodb/mongo-php-driver/pull/1555
* Use stable version of release tooling by @alcaeus in https://github.com/mongodb/mongo-php-driver/pull/1558
* Add test job to build and install PECL package by @alcaeus in https://github.com/mongodb/mongo-php-driver/pull/1559
* Merge v1.18 into v1.19 by @mongodb-php-bot in https://github.com/mongodb/mongo-php-driver/pull/1561
* PHPC-2326: Run static analysis by @alcaeus in https://github.com/mongodb/mongo-php-driver/pull/1539
* PHPC-2388: Install VC15 component for PHP 7.4 by @jmikola in https://github.com/mongodb/mongo-php-driver/pull/1565
* PHPC-2388: Simplify steps for VC15 installation by @jmikola in https://github.com/mongodb/mongo-php-driver/pull/1567

**Full Changelog**: https://github.com/mongodb/mongo-php-driver/compare/1.19.0...1.19.1
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEYB1UFjBzGnj7D2hrJubQdPEfzfsFAmZWDnEACgkQJubQdPEf
zfuIiRAAmpAlZ+DBj4gqMXF1UVk2UiHhBclEEwchS1BoXcD8QOpIlYgURc+Bup+/
63O54x8edgv24fwaBcyHleEvDd9aQJ+hYCaUyU/7SKLYudF3x/y0u9A8N4xZp1bc
mbdY8NC9AMpWQZNaLaZQx/s31CplkCboouwYdi1s5LGuiPz7yNwxqoRJTP5TuBTY
hYQA0ah4sTDc2WJ76vR2MWngFPfJbhnNk5BJbDMrqHANkORfwB5IXFKnyq84qOxw
qHgEakCrtjgp2e9KN8edG2WL8liRZJk/XO7P6UuRGMbBNWETl5jHyKExyuMnQ2eC
5nYKTRitoCItp4QeA4oD38FMBKRgmdwd898E36wShnA+W+sXsH+tcufk+QCrkAL+
UbwgepWWNhoUu6/mF1Zs8U7eEaokLZbwTXupDReQBxcwXE3U1SkczPP6bAfynokY
L7LbVxmqoI7RTS7czwPyZrMempCkNh3BElKsjYgihqJZJMVBWqSTb13KS+QONtww
MnUU6a7E70IepWZhyA0yFpjpBH/XeJELJPJDnZH1yuK59taRf7HWsCAhyyRZzC6B
iL3LLO4I2A39kS6vr68HyaYDov2RCW+b8kVo4Hh+/ccdfOr1ZwB2bMLRzmoHEIvR
gSgaf7qG9jfAZMToiNbZQTbvrkaGWFUEwTTUSpQ+8TXtHHZmVPs=
=pXrG
-----END PGP SIGNATURE-----
Show complete changelog