silpo-tech/openswoole-bundle 问题修复 & 功能扩展

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

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

silpo-tech/openswoole-bundle

最新稳定版本:v1.2.0

Composer 安装命令:

composer require silpo-tech/openswoole-bundle

包简介

Symfony OpenSwoole Bundle

README 文档

README

CI codecov License: MIT

Installation

Open a command console, enter your project directory and execute:

$ composer require silpo-tech/openswoole-bundle

USAGE

# Start the openswoole server
$ php bin/console openswoole:server:start
# Stop the openswoole server
$ php bin/console openswoole:server:stop
# Reload the openswoole server
$ php bin/console openswoole:server:reload

Configuration

Default Configs

host: 0.0.0.0
port: 80
options:
    pid_file: /var/run/openswoole_server.pid
    log_file: %kernel.logs_dir%/swoole.log
    daemonize: false
    max_requests: 200
    worker_num: 4
    document_root: %kernel.project_dir%/public
    enable_static_handler: false
    open_http2_protocol: false
    open_tcp_nodelay: false  # Disables Nagle's algorithm; set to true to reduce latency for small packets

Other Configs

Note: these options have not been tried

options:
    max_request: ~
    open_cpu_affinity: ~
    task_worker_num: ~
    enable_port_reuse: ~
    worker_num: ~
    reactor_num: ~
    dispatch_mode: ~
    discard_timeout_request: ~
    open_tcp_nodelay: ~
    open_mqtt_protocol: ~
    user: ~
    group: ~
    ssl_cert_file: ~
    ssl_key_file: ~
    package_max_length: ~

统计信息

  • 总下载量: 878
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-10-02