Debian Codegraph @

vendor/jfcherng/php-diff/example/README.md

raw
1 # Demo
2
3 Note that
4
5 - All `composer`-related commands are run in this project's root directory.
6 That is php-diff directory rather than this `example` directory.
7 - You can change differ/renderer options in `demo_base.php`.
8 - Change contents of `old_file.txt` and `new_file.txt` to test different text.
9
10 To run demo, you have to first install dependencies via `composer install`.
11
12 ## Web Environment
13
14 To run `demo_web.php` on your local machine, you can follow steps below.
15
16 1. Start PHP development server via `composer run-script server`.
17 1. Visit `http://localhost:12388/demo_web.php` with a web browser.
18
19 ## Cli Environment
20
21 Just run `php demo_cli.php`.