Skip to content

Improve quickstart example, update HTTP component description #459

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 10, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ client/server and interaction with processes. Third-party libraries can use thes
components to create async network clients/servers and more.

```php
<?php

// $ composer require react/http react/socket # install example using Composer
// $ php example.php # run example on command line, requires no additional web server

require __DIR__ . '/vendor/autoload.php';

$server = new React\Http\HttpServer(function (Psr\Http\Message\ServerRequestInterface $request) {
return React\Http\Message\Response::plaintext(
"Hello World!\n"
Expand Down Expand Up @@ -94,16 +101,10 @@ Node.js (V8).
Event-driven UDP client and server sockets for ReactPHP.
[Read the documentation](https://github.com/reactphp/datagram)

## Protocol Components

* **HTTP**
Event-driven, streaming plaintext HTTP and secure HTTPS server for ReactPHP.
Event-driven, streaming HTTP client and server implementation for ReactPHP.
[Read the documentation](https://github.com/reactphp/http)

* **HTTPClient**
Event-driven, streaming HTTP client for ReactPHP.
[Read the documentation](https://github.com/reactphp/http-client)

* **DNS**
Async DNS resolver for ReactPHP.
[Read the documentation](https://github.com/reactphp/dns)
Expand All @@ -126,7 +127,6 @@ Node.js (V8).
The missing link between Promise-land and Stream-land, built on top of ReactPHP.
[Read the documentation](https://github.com/reactphp/promise-stream)


## Built with ReactPHP

* **Thruway**
Expand Down
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