Skip to content

Commit f061297

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

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ composer require jfcherng/php-diff
4545

4646
## Example
4747

48-
See [example/demo.php](https://github.com/jfcherng/php-diff/blob/v6/example/demo.php) and files under `tests/`.
48+
See `demo.php` in the [example/](https://github.com/jfcherng/php-diff/blob/v6/example) and files under `tests/`.
4949

5050
```php
5151
<?php

composer.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@
4444
"phan --color",
4545
"phpcs --colors -n"
4646
],
47-
"example": [
48-
"Composer\\Config::disableProcessTimeout",
49-
"@php -S localhost:12388 -t example/"
50-
],
5147
"fix": [
5248
"php-cs-fixer fix --verbose"
5349
],
50+
"server": [
51+
"Composer\\Config::disableProcessTimeout",
52+
"@php -S localhost:12388 -t example/"
53+
],
5454
"test": [
5555
"phpunit --verbose"
5656
]

example/README.md

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

33
In the parent folder (i.e., this project's root directory):
44

5-
1. Install dependencies with `composer install`.
6-
1. Start PHP development server with `composer run-script example`.
5+
1. Install dependencies with `composer upgrade`.
6+
1. Start PHP development server with `composer run-script server`.
77
1. Visit `http://localhost:12388/demo.php` with your web browser.

0 commit comments

Comments
 (0)