Skip to content

Commit 781820a

Browse files
authored
Merge pull request #459 from clue-labs/http-docs
Improve quickstart example, update HTTP component description
2 parents 8eca49f + d442dfe commit 781820a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ client/server and interaction with processes. Third-party libraries can use thes
2323
components to create async network clients/servers and more.
2424

2525
```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+
2633
$server = new React\Http\HttpServer(function (Psr\Http\Message\ServerRequestInterface $request) {
2734
return React\Http\Message\Response::plaintext(
2835
"Hello World!\n"
@@ -94,16 +101,10 @@ Node.js (V8).
94101
Event-driven UDP client and server sockets for ReactPHP.
95102
[Read the documentation](https://github.com/reactphp/datagram)
96103

97-
## Protocol Components
98-
99104
* **HTTP**
100-
Event-driven, streaming plaintext HTTP and secure HTTPS server for ReactPHP.
105+
Event-driven, streaming HTTP client and server implementation for ReactPHP.
101106
[Read the documentation](https://github.com/reactphp/http)
102107

103-
* **HTTPClient**
104-
Event-driven, streaming HTTP client for ReactPHP.
105-
[Read the documentation](https://github.com/reactphp/http-client)
106-
107108
* **DNS**
108109
Async DNS resolver for ReactPHP.
109110
[Read the documentation](https://github.com/reactphp/dns)
@@ -126,7 +127,6 @@ Node.js (V8).
126127
The missing link between Promise-land and Stream-land, built on top of ReactPHP.
127128
[Read the documentation](https://github.com/reactphp/promise-stream)
128129

129-
130130
## Built with ReactPHP
131131

132132
* **Thruway**

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy