davidcole1340/reactsh
Reactsh provides a lightweight Laravel/PHP bridge for working with React and modern frontend tooling. It aims to simplify integrating React components into server-rendered apps with straightforward setup and sensible defaults for local development and builds.
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.
How can I help you explore Laravel packages today?