Skip to content

Commit 1d18ba9

Browse files
committed
Update installation instruction to use "pie"
1 parent dd5c07d commit 1d18ba9

File tree

2 files changed

+23
-11
lines changed

2 files changed

+23
-11
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,7 @@ env:
3232
You can either download and install the source manually, or you can install the extension with:
3333
3434
```
35-
pecl install mongodb-{0}
36-
```
37-
38-
or update with:
39-
40-
```
41-
pecl upgrade mongodb-{0}
35+
pie install mongodb/mongodb-extension:{0}
4236
```
4337
4438
Windows binaries are attached to the GitHub release notes.

README.md

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,30 @@ languages.
2222
- https://www.php.net/mongodb
2323
- https://www.mongodb.com/docs/drivers/php-drivers/
2424

25-
## Installation
25+
## Installation with pie
26+
27+
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+
29+
Install the [`mongodb/mongodb-extension`](https://packagist.org/packages/mongodb/mongodb-extension) package from Packagist using the following command:
30+
31+
```shell
32+
pie install mongodb/mongodb-extension
33+
```
34+
35+
This will automatically download, build, and enable the MongoDB extension for your PHP installation.
36+
37+
For more details on using `pie`, see the [pie documentation](https://github.com/php/pie).
38+
39+
## Installation with pecl
40+
41+
Using pecl to install extensions is deprecated,
2642

2743
To build and install the driver:
2844

29-
$ pecl install mongodb
30-
$ echo "extension=mongodb.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
45+
```shell
46+
pecl install mongodb
47+
echo "extension=mongodb.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
48+
```
3149

3250
Additional installation instructions may be found in the
3351
[PHP.net documentation](https://php.net/manual/en/mongodb.installation.php).
@@ -38,7 +56,7 @@ distributed as the
3856
[`mongodb/mongodb`](https://packagist.org/packages/mongodb/mongodb) package for
3957
[Composer](https://getcomposer.org).
4058

41-
## Release Integrity
59+
### Release Integrity
4260

4361
Releases are created automatically and signed using the
4462
[PHP team's GPG key](https://pgp.mongodb.com/php-driver.asc). This applies to

0 commit comments

Comments
 (0)