File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,13 @@ Via Composer
18
18
$ composer require php-http/react-adapter
19
19
```
20
20
21
+ ## Features
22
+
23
+ This lib adapt ReactPHP behaviour to use the [ PSR7 interfaces] ( https://github.com/php-fig/http-message ) .
24
+ Also ` sync ` and ` async ` requests are possible without more code than a function call.
25
+
26
+ For a deeper ` async ` comprehension, you must check how ReactPHP engine work.
27
+
21
28
## Usage
22
29
23
30
The ` ReactHttpAdapter ` class need a [ message factory] ( https://github.com/php-http/message-factory ) in order to work:
@@ -46,11 +53,18 @@ If you don't want to use the `Http\Adapter\ReactFactory` to build instances you
46
53
47
54
## Testing
48
55
56
+ First launch the http server:
57
+
58
+ ``` bash
59
+ $ ./vendor/bin/http_test_server > /dev/null 2>&1 &
60
+ ```
61
+
62
+ Then the test suite:
63
+
49
64
``` bash
50
65
$ composer test
51
66
```
52
67
53
-
54
68
## Contributing
55
69
56
70
Please see [ CONTRIBUTING] ( CONTRIBUTING.md ) and [ CONDUCT] ( CONDUCT.md ) for details.
You can’t perform that action at this time.
0 commit comments