Multi-platform convenience class to access the serial port from PHP