Skip to content

Commit d3b104c

Browse files
committed
Change titles and add version constraint
1 parent 6dd5baa commit d3b104c

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

README.md

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

25-
## Installation with pie
25+
## Installation
26+
27+
### With pie
2628

2729
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.
2830

@@ -34,13 +36,23 @@ pie install mongodb/mongodb-extension
3436

3537
This will automatically download, build, and enable the MongoDB extension for your PHP installation.
3638

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+
3748
For more details on using `pie`, see the [pie documentation](https://github.com/php/pie).
3849

39-
## Installation with pecl
50+
### with pecl
4051

41-
Using pecl to install extensions is deprecated,
52+
> [!NOTE]
53+
> Using pecl to install extensions is deprecated.
4254
43-
To build and install the driver:
55+
To build and install the extension:
4456

4557
```shell
4658
pecl install mongodb
@@ -58,7 +70,7 @@ distributed as the
5870
[`mongodb/mongodb`](https://packagist.org/packages/mongodb/mongodb) package for
5971
[Composer](https://getcomposer.org).
6072

61-
### Release Integrity
73+
## Release Integrity
6274

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

0 commit comments

Comments
 (0)