PHP code example of davidcole1340 / reactsh
1. Go to this page and download the library: Download davidcole1340/reactsh 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/ */
davidcole1340 / reactsh example snippets
$shell = new Shell();
$shell->run(get_defined_vars());
$loop = ...;
$yourOtherProcess = new OtherProcess($loop);
$shell = new Shell($loop);
$yourOtherProcess->on('ready', function () use ($shell) {
$shell->setContext(get_defined_vars());
});
$loop->run();