You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
30
+
31
+
Install the [`mongodb/mongodb-extension`](https://packagist.org/packages/mongodb/mongodb-extension) package from Packagist using the following command:
32
+
33
+
```shell
34
+
pie install mongodb/mongodb-extension
35
+
```
36
+
37
+
This will automatically download, build, and enable the MongoDB extension for your PHP installation.
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
+
48
+
For more details on using `pie`, see the [pie documentation](https://github.com/php/pie).
49
+
50
+
### with pecl
51
+
52
+
> [!NOTE]
53
+
> Using pecl to install extensions is deprecated.
54
+
55
+
To build and install the extension:
56
+
57
+
```shell
58
+
pecl install mongodb
59
+
echo"extension=mongodb.so">>`php --ini | grep "Loaded Configuration"| sed -e "s|.*:\s*||"`
60
+
```
31
61
32
62
The MongoDB PHP Driver follows [semantic versioning](https://semver.org/) for its releases.
33
63
@@ -42,6 +72,9 @@ distributed as the
42
72
43
73
## Release Integrity
44
74
75
+
> [!NOTE]
76
+
> Integrity validation is not yet supported when installing with `pie`. If you require signature verification, use the manual or PECL installation methods described below.
77
+
45
78
Releases are created automatically and signed using the
46
79
[PHP team's GPG key](https://pgp.mongodb.com/php-driver.asc). This applies to
47
80
the git tag as well as all release packages provided as part of a
0 commit comments