File tree Expand file tree Collapse file tree 2 files changed +19
-15
lines changed Expand file tree Collapse file tree 2 files changed +19
-15
lines changed Original file line number Diff line number Diff line change @@ -58,32 +58,27 @@ Download and Install
5858
5959 - :php:`PHP <install>` version 7.4 or later
6060 - `Composer <https://getcomposer.org/download/>`__ version 2.0 or later
61+ - :github:`pie </php/pie/blob/main/docs/usage.md>`
6162
6263 .. step:: Install the MongoDB PHP extension
6364
6465 Run the following command to install the ``mongodb`` PHP extension:
6566
6667 .. code-block:: bash
6768
68- sudo pecl install mongodb
69+ pie install mongodb/mongodb-extension
6970
70- .. step :: Update your PHP configuration file
71+ .. tip :: Specify the PHP Extension Version
7172
72- To enable the ``mongodb`` extension in your PHP configuration file, add the
73- following line to the top of your ``php.ini`` file:
74-
75- .. code-block:: none
76-
77- extension=mongodb.so
78-
79- .. tip::
80-
81- You can locate your ``php.ini`` file by running the following command
82- in your shell:
73+ To install a specific version of the {+extension-short+}, include
74+ the version number as shown in the following command:
8375
8476 .. code-block:: bash
8577
86- php --ini
78+ pie install mongodb/mongodb-extension:^{+full-version+}
79+
80+ To install a {+extension-short+} version before v1.21, you must
81+ use the :php:`pecl command <mongodb.installation#mongodb.installation.pecl>`.
8782
8883 .. step:: Create a project directory
8984
Original file line number Diff line number Diff line change @@ -58,7 +58,16 @@ directory:
5858
5959.. code-block:: bash
6060
61- pecl upgrade mongodb-<version-number>
61+ pie install mongodb/mongodb-extension:^<version-number>
62+
63+ .. tip:: Previous PHP Extension Versions
64+
65+ To upgrade to a {+extension-short+} version before v1.21,
66+ use the following command:
67+
68+ .. code-block:: bash
69+
70+ pecl upgrade mongodb-<version-number>
6271
6372To upgrade the PHP library version, replace ``<version-number>`` with the
6473version number you want to upgrade to and run the following command in your
You can’t perform that action at this time.
0 commit comments