ReactPHP event loop REPL. Inspired by PsySH but doesn't block any event loop.
$shell = new Shell();
$shell->run(get_defined_vars());or
$loop = ...;
$yourOtherProcess = new OtherProcess($loop);
$shell = new Shell($loop);
$yourOtherProcess->on('ready', function () use ($shell) {
$shell->setContext(get_defined_vars());
});
$loop->run();MIT License. See LICENSE.