silpo-tech / openswoole-bundle
Symfony OpenSwoole Bundle
Installs: 230
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 1
Open Issues: 1
Type:symfony-bundle
pkg:composer/silpo-tech/openswoole-bundle
Requires
- php: >=8.2
 - monolog/monolog: ^3.0
 - nyholm/psr7: ^1.8
 - openswoole/core: ^22.1
 - symfony/config: ^6.0|^7.0
 - symfony/console: ^6.0|^7.0
 - symfony/dependency-injection: ^6.0|^7.0
 - symfony/event-dispatcher: ^6.0|^7.0
 - symfony/http-kernel: ^6.0|^7.0
 - symfony/messenger: ^6.0|^7.0
 - symfony/psr-http-message-bridge: ^7.2
 - symfony/stopwatch: ^7.2
 - symfony/yaml: ^7.2
 - upscale/swoole-blackfire: ^4.0
 
Requires (Dev)
- doctrine/mongodb-odm: ^2.11
 - doctrine/orm: ^3.3
 - friendsofphp/php-cs-fixer: ^3.0
 - openswoole/ide-helper: ^22.0
 - php-amqplib/php-amqplib: ^3.7
 - phpstan/phpstan: ^2.0
 - phpunit/phpunit: ^11.2
 - sentry/sentry: ^4.10
 - symfony/doctrine-bridge: ^7.2
 
Suggests
- ext-openswoole: ^22.0
 
README
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
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: ~