zolex/reactphp-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

zolex/reactphp-bundle

最新稳定版本:1.0.0

Composer 安装命令:

composer require zolex/reactphp-bundle

包简介

ReactPHP Bundle for Symfony

README 文档

README

Release Version Integration Code Coverage

License Downloads

ReactPhpBundle

PHP Symfony

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

GitHub 信息

  • Stars: 4
  • Watchers: 0
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-06-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固