@@ -20,11 +20,11 @@ Create a MongoDB Client
20
20
Overview
21
21
--------
22
22
23
- To connect to a MongoDB deployment, you need two things :
23
+ To connect to a MongoDB deployment, you must create the following items :
24
24
25
- - A **connection URI**, also known as a *connection string*, which tells the {+driver-short+}
25
+ - **Connection URI**, also known as a *connection string*, which tells the {+driver-short+}
26
26
which MongoDB deployment to connect to.
27
- - A **MongoDB\\Client** object, which creates the connection to the MongoDB deployment
27
+ - **MongoDB\\Client** object, which creates the connection to the MongoDB deployment
28
28
and lets you perform operations on it.
29
29
30
30
You can also use either of these components to customize the way the {+driver-short+} behaves
@@ -78,15 +78,15 @@ A standard connection string includes the following components:
78
78
:ref:`php-connection-options` for a full description of
79
79
these options.
80
80
81
- For more information about creating a connection string , see
81
+ To learn more about connection strings , see
82
82
:manual:`Connection Strings </reference/connection-string>` in the
83
83
MongoDB Server documentation.
84
84
85
85
Create a ``MongoDB\Client``
86
86
---------------------------
87
87
88
- To create a connection to MongoDB, construct an instance of the ``MongoDB\Client`` class,
89
- passing the connection URI as a string to the constructor .
88
+ To create a connection to MongoDB, pass your connection string when constructing
89
+ an instance of the ``MongoDB\Client`` class .
90
90
91
91
In the following example, the library uses a sample connection URI to connect to a MongoDB
92
92
deployment on port ``27017`` of ``localhost``:
0 commit comments