Skip to content

ignacioxd/pupil-remote-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pupil-remote-php

Total Downloads Latest Stable Version License

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";
}