Skip to content

Commit 1866301

Browse files
authored
Merge pull request #61 from clue-labs/quickstart
Improve quickstart example, include autoloader and install instructions
2 parents 5fb96da + 986e549 commit 1866301

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

theme/homepage.html.twig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@
4141
<div class="welcome__example">
4242
{% markdown %}
4343
```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+
4451
$http = new React\Http\HttpServer(function (Psr\Http\Message\ServerRequestInterface $request) {
4552
return React\Http\Message\Response::plaintext(
4653
"Hello World!\n"

0 commit comments

Comments
 (0)