@@ -23,6 +23,13 @@ client/server and interaction with processes. Third-party libraries can use thes
23
23
components to create async network clients/servers and more.
24
24
25
25
``` php
26
+ <?php
27
+
28
+ // $ composer require react/http react/socket # install example using Composer
29
+ // $ php example.php # run example on command line, requires no additional web server
30
+
31
+ require __DIR__ . '/vendor/autoload.php';
32
+
26
33
$server = new React\Http\HttpServer(function (Psr\Http\Message\ServerRequestInterface $request) {
27
34
return React\Http\Message\Response::plaintext(
28
35
"Hello World!\n"
@@ -94,16 +101,10 @@ Node.js (V8).
94
101
Event-driven UDP client and server sockets for ReactPHP.
95
102
[ Read the documentation] ( https://github.com/reactphp/datagram )
96
103
97
- ## Protocol Components
98
-
99
104
* ** HTTP**
100
- Event-driven, streaming plaintext HTTP and secure HTTPS server for ReactPHP.
105
+ Event-driven, streaming HTTP client and server implementation for ReactPHP.
101
106
[ Read the documentation] ( https://github.com/reactphp/http )
102
107
103
- * ** HTTPClient**
104
- Event-driven, streaming HTTP client for ReactPHP.
105
- [ Read the documentation] ( https://github.com/reactphp/http-client )
106
-
107
108
* ** DNS**
108
109
Async DNS resolver for ReactPHP.
109
110
[ Read the documentation] ( https://github.com/reactphp/dns )
@@ -126,7 +127,6 @@ Node.js (V8).
126
127
The missing link between Promise-land and Stream-land, built on top of ReactPHP.
127
128
[ Read the documentation] ( https://github.com/reactphp/promise-stream )
128
129
129
-
130
130
## Built with ReactPHP
131
131
132
132
* ** Thruway**
0 commit comments