TeaOpenPTY is a library for PHP to spawn an interactive Linux terminal.
git clone https://github.com/ammarfaizi2/TeaOpenPTY
cd TeaOpenPTY
phpize
./configure
make
The shared library file will be located at modules/tea_openpty.so
See also: https://stackoverflow.com/questions/65460864/best-way-to-open-a-pty-with-php/65474462#65474462
This library is licensed under the MIT license.