Yireo_SwooleApi
PHP
8.1 - 8.4
Magento
2.4.7 | 2.4.8
CSP
Yes
Magento PHPCS
9
Current status: Experimental. If you are not contributing, support requests are not appreciated.
Forked from Swoolegento_Cli
This was forked from Swoolegento_Cli. PHP 8.3 has been added. Blackfire probing in the code has been removed. Upgrade commands to Symfony 6. Refactor main CLI command. Remove everything but support for GraphQL.
Installation
Make sure you have Swoole installed into PHP.
composer require yireo/magento2-swoole-api:@dev bin/magento module:enable Yireo_SwooleApi cp vendor/yireo/magento2-swoole-api/appserver.php . php ./appserver.php
Benchmarks
Original Magento GraphQL request (150ms-500ms):
time curl -S http://magento/graphql -H 'Content-Type: application/json' -d '{"query": "query {products {id}}"}'
Swoole GraphQL request with Swoole running on port 4000 (100ms-350ms):
time curl -S http://magento:4000/graphql -H 'Content-Type: application/json' -d '{"query": "query {products {id}}"}'
Current status
WARNING: This module has no releases yet. If you want to use it, make sure to add the version
@dev
to the composer command.
Support
For getting support, create an Issue under the following project URL:
https://github.com/yireo/Yireo_SwooleApi
Composer details
Magento module name
Yireo_SwooleApiComposer name
yireo/magento2-swoole-apiComposer version
No release yet
Default branch
master
Requirements
magento/framework: *
ext-swoole: *
php: >=8.2 <8.6
Releases
Changelog
No changelog available
Last modified: October 17, 2026