Skip to content

Commit cc32aa5

Browse files
committed
AS feedback
1 parent 005d830 commit cc32aa5

File tree

1 file changed

+31
-16
lines changed

1 file changed

+31
-16
lines changed

source/get-started/download-and-install.txt

Lines changed: 31 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ Download and Install
1919
Before you begin developing, ensure that you have the following
2020
dependencies installed on your local machine:
2121

22-
- `PHP <https://www.php.net/manual/en/install.php>`__
23-
- `Composer <https://getcomposer.org/download/>`__
22+
- `PHP <https://www.php.net/manual/en/install.php>`__ version 7.4 or later
23+
- `Composer <https://getcomposer.org/download/>`__ version 2.0 or later
2424

25-
.. step:: Install the MongoDB extension
25+
.. step:: Install the MongoDB PHP extension
2626

2727
Run the following command to install the ``mongodb`` PHP extension:
2828

@@ -32,17 +32,17 @@ Download and Install
3232

3333
.. step:: Update your PHP configuration file
3434

35-
To enable the ``mongodb`` extension, add the following line to the top of
36-
your ``php.ini`` file:
35+
To enable the ``mongodb`` extension in your PHP configuration file, add the
36+
following line to the top of your ``php.ini`` file:
3737

38-
.. code-block:: bash
38+
.. code-block:: none
3939

4040
extension=mongodb.so
4141

4242
.. tip::
4343

4444
You can locate your ``php.ini`` file by running the following command
45-
from your shell:
45+
in your shell:
4646

4747
.. code-block:: bash
4848

@@ -57,13 +57,26 @@ Download and Install
5757

5858
mkdir php-quickstart
5959

60-
Run the following commands to create a ``quickstart.php`` application file in
61-
the ``php-quickstart`` directory:
60+
Select the tab corresponding to your operating system and run following commands
61+
to create a ``quickstart.php`` application file in the ``php-quickstart`` directory:
6262

63-
.. code-block:: bash
63+
.. tabs::
64+
65+
.. tab:: macOS / Linux
66+
:tabid: create-file-mac-linux
67+
68+
.. code-block:: bash
69+
70+
cd php-quickstart
71+
touch quickstart.php
6472

65-
cd php-quickstart
66-
touch quickstart.php
73+
.. tab:: Windows
74+
:tabid: create-file-windows
75+
76+
.. code-block:: bash
77+
78+
cd php-quickstart
79+
type nul > quickstart.php
6780

6881
.. step:: Install the {+php-library+}
6982

@@ -75,13 +88,15 @@ Download and Install
7588
composer require mongodb/mongodb
7689

7790
After installing the library, include Composer's ``autoload.php`` file by adding the
78-
following line to ``quickstart.php``:
91+
following code to the top of your ``quickstart.php`` file:
7992

80-
.. code-block:: bash
93+
.. code-block:: php
94+
95+
<?php
8196

8297
require_once __DIR__ . '/vendor/autoload.php';
8398

84-
After you complete these steps, you have a new project directory
85-
and the library dependencies installed.
99+
After you complete these steps, you have a new project directory, a
100+
new application file, and the library dependencies installed.
86101

87102
.. include:: /includes/get-started/troubleshoot.rst

0 commit comments

Comments
 (0)