File tree Expand file tree Collapse file tree 3 files changed +19
-7
lines changed Expand file tree Collapse file tree 3 files changed +19
-7
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ composer require jfcherng/php-diff
5151
5252## Example
5353
54- See ` demo.php ` in the [ example/] ( https://github.com/jfcherng/php-diff/blob/v6/example ) and files under ` tests/ ` .
54+ See files and readme in the [ example/] ( https://github.com/jfcherng/php-diff/blob/v6/example ) directory .
5555
5656``` php
5757<?php
Original file line number Diff line number Diff line change 1- To run ` demo.php ` on your local machine, you can follow steps below.
1+ # Demo
22
3- In the parent folder (i.e., this project's root directory):
3+ Note that
44
5- 1 . Install dependencies with ` composer upgrade ` .
6- 1 . Start PHP development server with ` composer run-script server ` .
7- 1 . Visit ` http://localhost:12388/demo.php ` with your web browser.
8- 1 . Change ` old_file.txt ` , ` new_file.txt ` and refresh the web page to play around.
5+ - All ` composer ` -related commands are run in this project's root directory.
6+ - You can change differ/renderer options in ` demo_base.php ` .
7+ - Change contents of ` old_file.txt ` and ` new_file.txt ` to test different text.
8+
9+ To run demo, you have to first install dependencies via ` composer install ` .
10+
11+ ## Web Environment
12+
13+ To run ` demo_web.php ` on your local machine, you can follow steps below.
14+
15+ 1 . Start PHP development server via ` composer run-script server ` .
16+ 1 . Visit ` http://localhost:12388/demo_web.php ` with a web browser.
17+
18+ ## Cli Environment
19+
20+ Just run ` php demo_cli.php ` .
File renamed without changes.
You can’t perform that action at this time.
0 commit comments