DavidCole1340/reactsh

v0.0.3 2022-03-08 00:43 UTC

This package is auto-updated.

Last update: 2024-09-08 06:00:32 UTC


README

ReactPHP 事件循环 REPL。受 PsySH 启发,但不会阻塞任何事件循环。

用法

$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();

许可证

MIT 许可证。查看 LICENSE

致谢