The community is asking for how to use Swoole with Symfony and how to integrate a Symfony project with Open Swoole.
https://github.com/k911/swoole-bundle
Features:
It is a solution to integrate Symfony with Swoole to speed up your applications.
composer create-project symfony/skeleton project
cd ./project
composer require k911/swoole-bundle
<?php
return [
// ...other bundles
K911\Swoole\Bridge\Symfony\Bundle\SwooleBundle::class => ['all' => true],
];
bin/console swoole:server:run
https://github.com/insidestyles/swoole-bridge-bundle
composer require insidestyles/swoole-bridge-bundle
swoole_bridge:
server:
port: "%web_server_port%" #The port the socket server will listen on
host: "%web_server_host%"
<?php
new Insidestyles\SwooleBridgeBundle\SwooleBridgeBundle(),
php bin/console swoole:bridge:server
Join 4,000+ others and never miss out on new tips, tutorials, and more.