arfaram/connector-qwen
Composer 安装命令:
composer require arfaram/connector-qwen
包简介
Qwen (Alibaba Cloud) AI connector for Ibexa DXP using openai-php/client SDK
关键字:
README 文档
README
connector-qwen
Qwen (Alibaba Cloud) AI connector for Ibexa DXP.
This bundle integrates the Qwen AI models via Alibaba Cloud's DashScope API (OpenAI-compatible) with the Ibexa AI framework (ibexa/connector-ai). It uses the openai-php/client SDK with a custom base URL, so there is no need for a hand-rolled HTTP client.
Requirements
- PHP >= 8.3
- Ibexa DXP ~5.0
ibexa/connector-ai~5.0- Alibaba Cloud DashScope API key (get one at Model Studio Console)
Installation
Require the package:
composer require arfaram/connector-qwen
Register the bundle in config/bundles.php:
return [ // ... ConnectorQwenBundle\ConnectorQwenBundle::class => ['all' => true], ];
Environment Variable
Set your DashScope API key in .env:
QWEN_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxx
⚠️ This must be a DashScope API key (starts with
sk-), NOT an Alibaba Cloud AccessKey ID/Secret pair.To get your DashScope API key:
- International: Go to Model Studio Console, navigate to API Keys
- China region: Go to DashScope Console → API Keys
⚠️ You must also activate each model you want to use in the Model Studio console under Model Square / Model Plaza.
Region Configuration
The bundle defaults to the international DashScope endpoint. If you're using the China region, override per SiteAccess:
| Region | Base URI |
|---|---|
| International (default) | https://dashscope-intl.aliyuncs.com/compatible-mode/v1 |
| China | https://dashscope.aliyuncs.com/compatible-mode/v1 |
ibexa: system: default: connector_qwen: qwen: api_key: '%env(QWEN_API_KEY)%' # International (default): base_uri: 'https://dashscope-intl.aliyuncs.com/compatible-mode/v1' # China region: # base_uri: 'https://dashscope.aliyuncs.com/compatible-mode/v1'
Configuration
Available Qwen Models
⚠️ Retired models (do not use):
qwen-max,qwen-plus,qwen-turbo,qwen2.5-*series are deprecated.
Text Models
| Model ID | Description
|---|---|---|
| qwen3.6-plus | Qwen 3.6 Plus, most capable (latest)
| qwen3.6-plus-2026-04-02 | Qwen 3.6 Plus pinned to 2026-04-02
| qwen3.6-flash | Qwen 3.6 Flash, fast & balanced (latest)
| qwen3.6-flash-2026-04-16 | Qwen 3.6 Flash pinned to 2026-04-16
| qwen3.5-plus | Qwen 3.5 Plus (latest)
| qwen3.5-flash | Qwen 3.5 Flash (latest)
| qwen3-max | Qwen 3 Max (latest)
| qwen3.6-35b-a3b | Qwen 3.6 Open Source (35B-A3B)
| qwen3.5-35b-a3b | Qwen 3.5 Open Source (35B-A3B)
| qwen-long | Qwen Long, long context
Vision Models (Image-to-Text)
| Model ID | Description
|---|---|---|
| qwen3-vl-plus | Qwen 3 VL Plus, dedicated vision
| qwen3-vl-plus-2025-09-23 | Qwen 3 VL Plus pinned to 2025-09-23
| qwen3.6-plus | Qwen 3.6 Plus, multimodal capable (latest)
| qwen3.6-flash | Qwen 3.6 Flash, multimodal capable (latest)
| qwen3.5-plus | Qwen 3.5 Plus, multimodal capable (latest)
| qwen3.5-flash | Qwen 3.5 Flash, multimodal capable (latest)
| qwen3.6-35b-a3b | Qwen 3.6 Open Source vision
| qwen3.5-35b-a3b | Qwen 3.5 Open Source vision
Basic Configuration
Create config/packages/ibexa_connector_qwen.yaml:
ibexa_connector_qwen: text_to_text: default_model: qwen3.6-flash default_temperature: 1.0 default_max_tokens: 4000 models: qwen3.6-plus: 'Qwen 3.6 Plus (latest)' qwen3.6-flash: 'Qwen 3.6 Flash (latest)' qwen3.5-plus: 'Qwen 3.5 Plus (latest)' qwen3-max: 'Qwen 3 Max (latest)' qwen3.6-35b-a3b: 'Qwen 3.6 Open Source' image_to_text: default_model: qwen3-vl-plus default_temperature: 1.0 default_max_tokens: 4000 models: qwen3-vl-plus: 'Qwen 3 VL Plus (latest)' qwen3-vl-plus-2025-09-23: 'Qwen 3 VL Plus (2025-09-23)' qwen3.6-plus: 'Qwen 3.6 Plus (latest)' qwen3.6-flash: 'Qwen 3.6 Flash (latest)' qwen3.6-35b-a3b: 'Qwen 3.6 Open Source'
SiteAccess-Aware API Key Configuration
ibexa: system: default: connector_qwen: qwen: api_key: '%env(QWEN_API_KEY)%' my_siteaccess: connector_qwen: qwen: api_key: '%env(QWEN_API_KEY_MY_SITEACCESS)%'
Minimal Configuration (uses defaults)
ibexa_connector_qwen: text_to_text: default_model: qwen3.6-plus
All other values will use their defaults:
default_temperature:1.0default_max_tokens:4000models: all current Qwen models as defined in the Configuration class
Production-Optimized Configuration
Use dated model versions in production for deterministic, reproducible results:
ibexa_connector_qwen: text_to_text: default_model: qwen3.6-flash-2026-04-16 default_temperature: 0.7 default_max_tokens: 4096 models: qwen3.6-plus-2026-04-02: 'Qwen 3.6 Plus (2026-04-02)' qwen3.6-flash-2026-04-16: 'Qwen 3.6 Flash (2026-04-16)' image_to_text: default_model: qwen3-vl-plus-2025-09-23 default_temperature: 0.5 default_max_tokens: 2048 models: qwen3-vl-plus-2025-09-23: 'Qwen 3 VL Plus (2025-09-23)'
License
MIT - See LICENSE for details.
Author
Ramzi Arfaoui - ramzi_arfa@hotmail.de
arfaram/connector-qwen 适用场景与选型建议
arfaram/connector-qwen 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 04 月 19 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「ai」 「alibaba」 「ibexa」 「ibexa-dxp」 「qwen」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 arfaram/connector-qwen 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 arfaram/connector-qwen 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 arfaram/connector-qwen 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Netgen Enhanced Selection bundle for Ibexa Platform
A bundle which extend ibexa solr search handler
Netgen Open Graph Bundle is an Ibexa Platform bundle that allows simple integration with Open Graph protocol.
无描述信息
Novactive eZ 2FA Bundle is an Ibexa bundle that provides two-factor authentication for your Ibexa project
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 28
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-04-19