Note that
- All
composer
-related commands are run in this project's root directory. That is php-diff directory rather than thisexample
directory. - You can change differ/renderer options in
demo_base.php
. - Change contents of
old_file.txt
andnew_file.txt
to test different text.
To run demo, you have to first install dependencies via composer install
.
To run demo_web.php
on your local machine, you can follow steps below.
- Start PHP development server via
composer run-script server
. - Visit
http://localhost:12388/demo_web.php
with a web browser.
Just run php demo_cli.php
.