A simple PHP remote control client for the Pupil eye tracker software.
The package is available on Packagist, and you can install it using Composer:
composer require ignacioxd/pupil-remote-php
$host = "127.0.0.1";
$port = 50020;
$remote = new \Ignacioxd\PupilRemote();
$remote->connect($host, $port); // Or leave empty for defaults
$pupilTime = $remote->getTimebase();
$remote->setTimebase(123.456);
if( $remote->startCalibration() ) {
echo "Calibration started";
}
if( $remote->stopCalibration() ) {
echo "Calibration stopped";
}
if( $remote->startRecording() ) {
echo "Recording started";
}
if( $remote->stopRecording() ) {
echo "Recording stopped";
}