This extension allows to interact with processes through PTY, using expect library. WWW: http://pecl.php.net/package/expect/