@@ -13,6 +13,16 @@ to have an actual event loop and non-blocking libraries interacting with that
13
13
event loop for it to work. As long as you have a Promise-based API that runs in
14
14
an event loop, it can be used with this library.
15
15
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
+
16
26
** Table of Contents**
17
27
18
28
* [ Usage] ( #usage )
@@ -487,7 +497,7 @@ Once released, this project will follow [SemVer](https://semver.org/).
487
497
At the moment, this will install the latest development version:
488
498
489
499
``` bash
490
- $ composer require react/async:dev-main
500
+ $ composer require react/async:^4@ dev
491
501
```
492
502
493
503
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
502
512
[ ` 2.x ` branch] ( https://github.com/reactphp/async/tree/2.x ) (PHP 5.3+) which both
503
513
provide a compatible API but do not take advantage of newer language features.
504
514
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
+ ```
506
520
507
521
## Tests
508
522
0 commit comments