定制 yireo/magento2-swoole-api 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

yireo/magento2-swoole-api

Composer 安装命令:

composer require yireo/magento2-swoole-api

包简介

N/A

README 文档

README

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}}"}'

统计信息

  • 总下载量: 96
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: OSL-3.0
  • 更新时间: 2025-01-07