This is an example from the Scanner library user manual.
Requires PHP 8.0 or newer.
- Clone the project onto your computer.
- In the root of the project, run the command
composer install
To run the command, go to the bin
folder of the downloaded project in the console:
cd path/to/cloned/example-for-scanner/bin/
Where path/to/cloned
is the folder where you downloaded the example.
Run the command:
php execute
The output will be like this:
Start: make breakfast
Start: sandwich
Start: cut a piece of bread
Execute: take the knife in your right hand
Execute: cut a piece of bread on a wooden board
Execute: spread butter on bread
Execute: put a piece of cheese on top
Start: coffee
Execute: take a cup
Execute: pour coffee into a cup
The MIT License (MIT). Please see License File for more information.