ignacioxd / pupil-remote-php
A simple PHP remote control client for the Pupil eye tracker software.
1.0.1
2017-04-11 05:14 UTC
Requires
- ext-zmq: *
This package is not auto-updated.
Last update: 2025-03-16 04:30:21 UTC
README
A simple PHP remote control client for the Pupil eye tracker software.
Installation
The package is available on Packagist, and you can install it using Composer:
composer require ignacioxd/pupil-remote-php
Dependencies
Basic usage
Connecting
$host = "127.0.0.1"; $port = 50020; $remote = new \Ignacioxd\PupilRemote(); $remote->connect($host, $port); // Or leave empty for defaults
Getting Pupil's timebase
$pupilTime = $remote->getTimebase();
Setting Pupil's timebase
$remote->setTimebase(123.456);
Starting calibration
if( $remote->startCalibration() ) { echo "Calibration started"; }
Stopping calibration
if( $remote->stopCalibration() ) { echo "Calibration stopped"; }
Start recording
if( $remote->startRecording() ) { echo "Recording started"; }
Stop recording
if( $remote->stopRecording() ) { echo "Recording stopped"; }