PHP code example of croustibat / php-pty
1. Go to this page and download the library: Download croustibat/php-pty library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
croustibat / php-pty example snippets
bash
composer bash
git clone https://github.com/croustibat/php-pty.git
cd php-pty
composer install
php examples/quickstart.php
bash
php examples/interactive.php
bash
php examples/interactive.php -- /bin/sh
php examples/interactive.php -- top
php examples/multiple-sessions.php