yes, you can communicate with serial devices in php. you need to be on unix and have php compiled with the switch --enable-dio
once that requirement is fulfilled, you can use the direct IO functions.
http://php.net/manual/en/ref.dio.php
dio_tcsetattr can be used to set parity, baud rate, stop bits, etc.
and
dio_write can send your hex data.