The community is asking for how to use Swoole with Symfony and how to integrate a Symfony project with Open Swoole.
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], ];
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
ext-swooleis supported until v4.7.1, use
ext-openswoole>= v4.7.1. Latest version:
pecl install openswoole-4.10.0