LaraReactPHP is a Laravel package for using ReactPHP to serve your application.
- PHP >= 7.0
- Laravel >= 5.5
composer require tyea/larareactphp
php artisan serve:reactphp
You can optionally pass host and port arguments.
php artisan serve:reactphp 0.0.0.0 80
LaraReactPHP ships with a Bash script for automatically rerunning the php artisan serve:reactphp
command upon changes to your application.
bash vendor/bin/larareactphp
You must have inotify-tools
installed in order to use it. It also accepts host and port arguments.
- Terminable middleware is not supported
- File downloads are not supported
- File responses are not supported
This repo is forked from:
Written by Tom Yeadon in March 2020.