Skip to content

Commit 34786fa

Browse files
committed
Update example/README.md
Signed-off-by: Jack Cherng <[email protected]>
1 parent 1f1b24c commit 34786fa

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

composer.json

+4
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@
4444
"phan --color",
4545
"phpcs --colors -n"
4646
],
47+
"example": [
48+
"Composer\\Config::disableProcessTimeout",
49+
"@php -S localhost:12388 -t example/"
50+
],
4751
"fix": [
4852
"php-cs-fixer fix --verbose"
4953
],

example/README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
To run the example on your local machine, you can follow steps below.
22

3-
1. Execute `php -S localhost:12388` where `12388` is an arbitrary unused port.
3+
In the parent folder (i.e., this project's root directory):
4+
5+
1. Install dependencies with `composer install`.
6+
1. Start PHP development server with `composer run-script example`.
47
1. Visit `http://localhost:12388/demo.php` with your web browser.

0 commit comments

Comments
 (0)