We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fb96da commit 986e549Copy full SHA for 986e549
theme/homepage.html.twig
@@ -41,6 +41,13 @@
41
<div class="welcome__example">
42
{% markdown %}
43
```php
44
+<?php
45
+
46
+// $ composer require react/http react/socket # install example using Composer
47
+// $ php example.php # run example on command line, requires no additional web server
48
49
+require __DIR__ . '/vendor/autoload.php';
50
51
$http = new React\Http\HttpServer(function (Psr\Http\Message\ServerRequestInterface $request) {
52
return React\Http\Message\Response::plaintext(
53
"Hello World!\n"
0 commit comments