DavidCole1340 / reactsh
ReactPHP REPL
v0.0.3
2022-03-08 00:43 UTC
Requires
- clue/stdio-react: ^2.3
- symfony/var-dumper: ^5.1
Requires (Dev)
- monolog/monolog: ^2.1
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。