zolex/reactphp-bundle
最新稳定版本:1.0.0
Composer 安装命令:
composer require zolex/reactphp-bundle
包简介
ReactPHP Bundle for Symfony
README 文档
README
A Symfony Bundle providing a Runtime for ReactPHP, a PSR-17 Kernel and a Router to serve assets.
Turn any Symfony project into a "self-serving" application, no traditional webserver required.
Installation
composer require zolex/reactphp-bundle
Start the server
APP_RUNTIME="Zolex\\ReactPhpBundle\\Runtime\\ReactPhpRuntime" php public/index.php
For a very basic docker example, check the Dockerfile in the docs folder.
Assets
To allow serving assets from the public directory through ReactPHP, add this file to your project config/routes/react_bundle.yaml
reactphp_bundle: type: reactphp_bundle resource: .
By default, only files in the public/bundles directory are served (like Swagger-UI in API-Platform).
Additional directories and files can be registered in the bundle config at config/bundles/zolex_react_php.yaml:
zolex_react_php: asset_paths: - /bundles/ - /custom-dir/ - /single-file.js - /another/single/file.css
统计信息
- 总下载量: 191
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-06-28
