davidcole1340 / reactsh
ReactPHP REPL
Installs: 1 451
Dependents: 2
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
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-11-08 06:20:25 UTC
README
ReactPHP event loop REPL. Inspired by PsySH but doesn't block any event loop.
Usage
$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();
License
MIT License. See LICENSE.