@@ -22,7 +22,9 @@ languages.
22
22
- https://www.php.net/mongodb
23
23
- https://www.mongodb.com/docs/drivers/php-drivers/
24
24
25
- ## Installation with pie
25
+ ## Installation
26
+
27
+ ### With pie
26
28
27
29
To install this extension, you need [ pie] ( https://github.com/php/pie ) installed on your system. ` pie ` is a modern tool for managing PHP extensions.
28
30
@@ -34,13 +36,23 @@ pie install mongodb/mongodb-extension
34
36
35
37
This will automatically download, build, and enable the MongoDB extension for your PHP installation.
36
38
39
+ Add a version constraint after the extension name to restrict can be installed:
40
+
41
+ ``` shell
42
+ pie install mongodb/mongodb-extension:^2.1.0
43
+ ```
44
+
45
+ The constraint ` ^2.1.0 ` will install the latest version ` >= 2.1.0 < 3.0.0-dev ` .
46
+
47
+
37
48
For more details on using ` pie ` , see the [ pie documentation] ( https://github.com/php/pie ) .
38
49
39
- ## Installation with pecl
50
+ ### with pecl
40
51
41
- Using pecl to install extensions is deprecated,
52
+ > [ !NOTE]
53
+ > Using pecl to install extensions is deprecated.
42
54
43
- To build and install the driver :
55
+ To build and install the extension :
44
56
45
57
``` shell
46
58
pecl install mongodb
@@ -58,7 +70,7 @@ distributed as the
58
70
[ ` mongodb/mongodb ` ] ( https://packagist.org/packages/mongodb/mongodb ) package for
59
71
[ Composer] ( https://getcomposer.org ) .
60
72
61
- ### Release Integrity
73
+ ## Release Integrity
62
74
63
75
Releases are created automatically and signed using the
64
76
[ PHP team's GPG key] ( https://pgp.mongodb.com/php-driver.asc ) . This applies to
0 commit comments