Minimal hello world Symfony application with k911/swoole-bundle
and Docker.
Requirements:
docker-compose build
docker-compose up
Requirements:
- PHP v7.4 and up
- composer
- Swoole PHP Extension v4.4.7 and up
composer install
./bin/console swoole:server:run
-
curl http://localhost:9501
-
Lucky number generator with output to CLI (implemented using Symfony Messenger)
curl http://localhost:9501/messenger
-
Server API Access
# Gets server info curl http://localhost:9200/api/server # Reload server curl -X PATCH http://localhost:9200/api/server # Shutdown server curl -X DELETE http://localhost:9200/api/server
-
Get server status and metrics
bin/console swoole:server:status