apt update
apt install php php-curl composer
composer install
Add credentials for API to ~/.netrc
like default login admin password adm1n
.
Run the script like:
php main.php http://localhost/domjudge
You can test if your ticket printer works by echo "Hello World" > /dev/usb/lp0
, if it works then it will print Hello World
on the ticket printer.