Search by

brandoriented / swoole-server-bundle

Effiana

This package is abandoned and no longer maintained. No replacement package was suggested.
There is no license information available for the latest version (1.0.6) of this package.

Symfony Swoole HTTP Server Bundle

Package info

github.com/BrandOriented/swoole-server-bundle

Type:symfony-bundle

pkg:composer/brandoriented/swoole-server-bundle

Statistics

Installs: 4

Dependents: 0

Suggesters: 0

Stars: 0

1.0.6 2018-06-17 22:35 UTC

This package is auto-updated.

Last update: 2026-08-29 02:51:30 UTC


README

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

$ composer require emnsen/swoole-server-bundle

USAGE

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

Configuration

Default Configs

host: 0.0.0.0
port: 8080
options:
    pid_file: /var/run/swoole_server.pid
    log_file: %kernel.logs_dir%/swoole.log
    daemonize: true
    document_root: %kernel.project_dir%/public
    enable_static_handler: true

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: ~