Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/emnsen/swoole-server-bundle
https://github.com/emnsen/swoole-server-bundle
php swoole swoole-server symfony symfony-swoole symfony3 symfony4
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/emnsen/swoole-server-bundle
- Owner: emnsen
- Created: 2018-06-16T16:29:10.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-06-17T22:35:38.000Z (over 6 years ago)
- Last Synced: 2024-03-15T14:16:26.124Z (10 months ago)
- Topics: php, swoole, swoole-server, symfony, symfony-swoole, symfony3, symfony4
- Language: PHP
- Size: 14.6 KB
- Stars: 15
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Installation
============Open a command console, enter your project directory and execute:
```console
$ composer require emnsen/swoole-server-bundle
```USAGE
----------------------------------```bash
# Start the swoole server
$ php bin/console swoole:server:start
``````bash
# Stop the swoole server
$ php bin/console swoole:server:stop
``````bash
# Reload the swoole server
$ php bin/console swoole:server:reload
```Configuration
----------------------------------### Default Configs
```yaml
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*```yaml
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: ~
```