File tree 3 files changed +8
-8
lines changed
3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ composer require jfcherng/php-diff
45
45
46
46
## Example
47
47
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/ ` .
49
49
50
50
``` php
51
51
<?php
Original file line number Diff line number Diff line change 44
44
" phan --color" ,
45
45
" phpcs --colors -n"
46
46
],
47
- "example" : [
48
- " Composer\\ Config::disableProcessTimeout" ,
49
- " @php -S localhost:12388 -t example/"
50
- ],
51
47
"fix" : [
52
48
" php-cs-fixer fix --verbose"
53
49
],
50
+ "server" : [
51
+ " Composer\\ Config::disableProcessTimeout" ,
52
+ " @php -S localhost:12388 -t example/"
53
+ ],
54
54
"test" : [
55
55
" phpunit --verbose"
56
56
]
Original file line number Diff line number Diff line change 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.
2
2
3
3
In the parent folder (i.e., this project's root directory):
4
4
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 ` .
7
7
1 . Visit ` http://localhost:12388/demo.php ` with your web browser.
You can’t perform that action at this time.
0 commit comments