mnvx / laravel-reactphp
为 Laravel 框架和 Lumen 框架提供的 ReactPHP 服务器
v0.2.0
2017-06-16 23:16 UTC
Requires
- php: >=5.6.4
- guzzlehttp/guzzle: ^6.2
- react/http: ^0.7.0
- symfony/http-foundation: ~3.2
- symfony/http-kernel: ~3.2
- symfony/psr-http-message-bridge: ^1.0
- zendframework/zend-diactoros: ^1.4
Requires (Dev)
- phpunit/phpunit: ~5.7
README
集成 ReactPHP 服务器,用于 Laravel 5.4 和 Lumen 5.4。
此分支支持包含 JSON 体的请求。
现在使用 reactphp/http 0.7.0!
安装
通过 composer 安装
composer require mnvx/laravel-reactphp:dev-master
安装后,在项目的 config/app.php 中添加提供者。
// app.php 'providers' => [ // ... 'LaravelReactPHP\Providers\ReactCommandProvider', ],
运行服务器
php artisan react-serve --listen=tcp://127.0.0.1:8080
致谢
此库基于 Saoneth/laravel-reactphp 构建。