Skip to content

Commit 83749dd

Browse files
authored
Merge pull request #29 from clue-labs/rename-4.x
Rename `main` branch to `4.x` and update installation instructions
2 parents f492e65 + 166b144 commit 83749dd

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

README.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,16 @@ to have an actual event loop and non-blocking libraries interacting with that
1313
event loop for it to work. As long as you have a Promise-based API that runs in
1414
an event loop, it can be used with this library.
1515

16+
> **Development version:** This branch contains the code for the upcoming 4.0
17+
> release which will be the way forward for this package. However, we will still
18+
> actively support 3.0 and 2.0 for those not yet on PHP 8.1+.
19+
>
20+
> If you're using an older PHP version, you may use the
21+
> [`3.x` branch](https://github.com/reactphp/async/tree/3.x) (PHP 7.1+) or
22+
> [`2.x` branch](https://github.com/reactphp/async/tree/2.x) (PHP 5.3+) which both
23+
> provide a compatible API but do not take advantage of newer language features.
24+
> See also [installation instructions](#install) for more details.
25+
1626
**Table of Contents**
1727

1828
* [Usage](#usage)
@@ -487,7 +497,7 @@ Once released, this project will follow [SemVer](https://semver.org/).
487497
At the moment, this will install the latest development version:
488498

489499
```bash
490-
$ composer require react/async:dev-main
500+
$ composer require react/async:^4@dev
491501
```
492502

493503
See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades.
@@ -502,7 +512,11 @@ smooth upgrade path. If you're using an older PHP version, you may use the
502512
[`2.x` branch](https://github.com/reactphp/async/tree/2.x) (PHP 5.3+) which both
503513
provide a compatible API but do not take advantage of newer language features.
504514
You may target multiple versions at the same time to support a wider range of
505-
PHP versions.
515+
PHP versions like this:
516+
517+
```bash
518+
$ composer require "react/async:^4@dev || ^3@dev || ^2@dev"
519+
```
506520

507521
## Tests
508522

0 commit comments

Comments
 (0)