@@ -22,14 +22,109 @@ following versions of the {+php-library+}:
2222
2323* :ref:`Version 1.20 <php-lib-version-1.20>`
2424
25+ * :ref:`Version 1.18 <php-lib-version-1.18>`
26+
27+ * :ref:`Version 1.17 <php-lib-version-1.17>`
28+
29+ * :ref:`Version 1.16 <php-lib-version-1.16>`
30+
31+ * :ref:`Version 1.15 <php-lib-version-1.15>`
32+
2533.. _php-lib-version-1.20:
2634
2735What's New in 1.20
2836------------------
2937
30- .. important:: MongoDB Server v3.6 End-of-Life
38+ .. important:: {+mdb-server+} v3.6 End-of-Life
3139
32- Support for MongoDB Server v3.6 is removed in this release of the
40+ Support for {+mdb-server+} v3.6 is removed in this release of the
3341 library.
3442
35- - Adds support for MongoDB Server v8.0.
43+ - Adds support for {+mdb-server+} v8.0.
44+
45+ .. _php-lib-version-1.18:
46+
47+ What's New in 1.18
48+ ------------------
49+
50+ - Adds a new GridFS API to make it more convenient to work with files using PHP's
51+ existing filesystem functions. The :phpmethod:`MongoDB\GridFS\Bucket::registerGlobalStreamWrapperAlias()`
52+ method may be used to register a global alias for a GridFS bucket. After
53+ doing so, files within that bucket can be accessed by using only a file URI
54+ (e.g. "gridfs://mybucket/hello.txt"). A demonstration of this API can be found
55+ in the `gridfs_stream_wrapper.php <https://github.com/mongodb/mongo-php-library/blob/1.18.0/examples/gridfs_stream_wrapper.php>`__
56+ example script.
57+
58+ - Adds :phpmethod:`MongoDB\Client::addSubscriber()` and
59+ :phpmethod:`MongoDB\Client::removeSubscriber()` methods to the
60+ ``MongoDB\Client`` class to make it easier to register monitoring classes
61+ scoped to the underlying ``MongoDB\Driver\Manager`` object.
62+
63+ To learn more about this release, see the `v1.18 Release Notes
64+ <https://github.com/mongodb/mongo-php-library/releases/tag/1.18.0>`__ on GitHub.
65+
66+ .. _php-lib-version-1.17:
67+
68+ What's New in 1.17
69+ ------------------
70+
71+ - Introduces a new "codec" API for converting BSON to and from PHP objects.
72+ More information on this feature may be found in the
73+ :ref:`Codecs tutorial <php-codecs>`.
74+
75+ - Adds :phpmethod:`MongoDB\add_logger()` and
76+ :phpmethod:`MongoDB\remove_logger()` functions to the library.
77+ These functions allow applications to register a `PSR-3 Logger <https://www.php-fig.org/psr/psr-3/>`__
78+ to receive log messages emitted by the driver. Previously, logs were only
79+ available through the extension's `mongodb.debug <https://www.php.net/manual/en/mongodb.configuration.php#ini.mongodb.debug>`__
80+ ``INI`` setting.
81+
82+ - Introduces new :phpclass:`MongoDB\Collection` methods to create and manage
83+ Atlas Search indexes. Atlas Search indexes can be queried using the ``$search``
84+ aggregation pipeline stage, which is supported in all versions of the library.
85+ To learn more about Atlas Search indexes and the specifics of the ``$search``
86+ aggregation stage, see the :atlas:`Atlas Search indexes </atlas-search>`
87+ documentation and :manual:`$search </reference/operator/aggregation/search/>`.
88+
89+ - Upgrades the ``mongodb`` extension requirement to 1.17.0. Support for PHP
90+ 7.2 and 7.3 has been removed and the library now requires PHP 7.4 or newer.
91+
92+ To learn more about this release, see the `v1.17 Release Notes
93+ <https://github.com/mongodb/mongo-php-library/releases/tag/1.17.0>`__ on GitHub.
94+
95+ .. _php-lib-version-1.16:
96+
97+ What's New in 1.16
98+ ------------------
99+
100+ - Introduces support for :v7.0:`MongoDB 7.0 </release-notes/7.0>`.
101+
102+ - Introduces :phpmethod:`MongoDB\Database::createEncryptedCollection()`.
103+ This method automatically creates data encryption keys when creating a new
104+ encrypted collection.
105+
106+ - Upgrades the ``mongodb`` extension requirement to 1.16.0.
107+
108+ To learn more about this release, see the `v1.16 Release Notes
109+ <https://github.com/mongodb/mongo-php-library/releases/tag/1.16.0>`__ on GitHub.
110+
111+ .. _php-lib-version-1.15:
112+
113+ What's New in 1.15
114+ ------------------
115+
116+ - Adds new ``examples/`` and ``tools/`` directories to the library repository,
117+ which contain code snippets and scripts that may prove useful when writing
118+ or debugging applications. These directories are intended to
119+ supplement the library's existing documentation and will be added to over time.
120+
121+ - Adds various backwards compatible typing improvements throughout the
122+ library. Downstream impact for these changes are discussed in
123+ `UPGRADE-1.15.md <https://github.com/mongodb/mongo-php-library/blob/1.15.0/UPGRADE-1.15.md>`__.
124+
125+ - Integrates `Psalm <https://psalm.dev/>`__ for static analysis.
126+
127+ - Upgrades the ``mongodb`` extension requirement to 1.15.0.
128+
129+ To learn more about this release, see the `v1.15 Release Notes
130+ <https://github.com/mongodb/mongo-php-library/releases/tag/1.15.0>`__ on GitHub.
0 commit comments