Skip to content

Commit 6dd5baa

Browse files
committed
Update installation instruction to use "pie"
1 parent 709a236 commit 6dd5baa

File tree

2 files changed

+27
-13
lines changed

2 files changed

+27
-13
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ on:
1515

1616
env:
1717
default-release-message: |
18-
The PHP team is happy to announce that version {0} of the [mongodb](https://pecl.php.net/package/mongodb) PHP extension is now available on PECL.
18+
The PHP team is happy to announce that version {0} of the MongoDB PHP extension is now available.
19+
- [mongodb/mongodb-extension](https://packagist.org/packages/mongodb/mongodb-extension#{0}) on Packagist.
20+
- [mongodb](https://pecl.php.net/package/mongodb) on PECL
1921
2022
**Release Highlights**
2123
@@ -32,16 +34,10 @@ env:
3234
You can either download and install the source manually, or you can install the extension with:
3335
3436
```
35-
pecl install mongodb-{0}
37+
pie install mongodb/mongodb-extension:{0}
3638
```
3739
38-
or update with:
39-
40-
```
41-
pecl upgrade mongodb-{0}
42-
```
43-
44-
Windows binaries are attached to the GitHub release notes.
40+
Sources and Windows binaries are attached to the GitHub release notes.
4541
4642
jobs:
4743
prepare-release:

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
The MongoDB PHP Driver follows [semantic versioning](https://semver.org/) for its releases.
3351

@@ -40,7 +58,7 @@ distributed as the
4058
[`mongodb/mongodb`](https://packagist.org/packages/mongodb/mongodb) package for
4159
[Composer](https://getcomposer.org).
4260

43-
## Release Integrity
61+
### Release Integrity
4462

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

0 commit comments

Comments
 (0)