@@ -13,6 +13,16 @@ to have an actual event loop and non-blocking libraries interacting with that
1313event loop for it to work. As long as you have a Promise-based API that runs in
1414an 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/).
487497At 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
493503See 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
503513provide a compatible API but do not take advantage of newer language features.
504514You 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