PHPackages                             arfaram/connector-qwen - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. arfaram/connector-qwen

ActiveIbexa-bundle[API Development](/categories/api)

arfaram/connector-qwen
======================

Qwen (Alibaba Cloud) AI connector for Ibexa DXP using openai-php/client SDK

1.0.0(1mo ago)01↓100%MITPHPPHP &gt;=8.3

Since Apr 19Pushed 1mo agoCompare

[ Source](https://github.com/arfaram/connector-qwen)[ Packagist](https://packagist.org/packages/arfaram/connector-qwen)[ RSS](/packages/arfaram-connector-qwen/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (21)Versions (2)Used By (0)

[![GitHub tag (latest SemVer)](https://camo.githubusercontent.com/d5de99cd7591bbe94b816da3d8c1554a1f2b32ae476541ac6374f087e1e61601/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f7461672f6172666172616d2f636f6e6e6563746f722d7177656e3f7374796c653d666c61742d73717561726526636f6c6f723d626c7565)](https://github.com/arfaram/connector-qwen/tags)[![Downloads](https://camo.githubusercontent.com/a497abbe98b07b9d15fe6992c0654d0728772369d2a9ccca64e0418c2dac1442/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6172666172616d2f636f6e6e6563746f722d7177656e2e7376673f7374796c653d666c61742d73717561726526636f6c6f723d626c7565)](https://packagist.org/packages/arfaram/connector-qwen)[![License](https://camo.githubusercontent.com/0923d24df37d37bc2bdb2dec11720495ccf1df0927396a310e29d83b1b0d84ce/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6172666172616d2f636f6e6e6563746f722d7177656e2e7376673f7374796c653d666c61742d73717561726526636f6c6f723d626c7565)](https://github.com/arfaram/connector-qwen/blob/master/LICENSE)

connector-qwen
==============

[](#connector-qwen)

Qwen (Alibaba Cloud) AI connector for [Ibexa DXP](https://ibexa.co).

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`](https://github.com/openai-php/client) SDK with a custom base URL, so there is no need for a hand-rolled HTTP client.

Requirements
------------

[](#requirements)

- PHP &gt;= 8.3
- Ibexa DXP ~5.0
- `ibexa/connector-ai` ~5.0
- Alibaba Cloud DashScope API key (get one at [Model Studio Console](https://modelstudio.console.alibabacloud.com/))

Installation
------------

[](#installation)

Require the package:

```
composer require arfaram/connector-qwen
```

Register the bundle in `config/bundles.php`:

```
return [
    // ...
    ConnectorQwenBundle\ConnectorQwenBundle::class => ['all' => true],
];
```

Environment Variable
--------------------

[](#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](https://modelstudio.console.alibabacloud.com/), navigate to **API Keys**
> - **China region**: Go to [DashScope Console → API Keys](https://dashscope.console.aliyun.com/apiKey)
>
> ⚠️ **You must also activate each model** you want to use in the Model Studio console under **Model Square / Model Plaza**.

Region Configuration
--------------------

[](#region-configuration)

The bundle defaults to the **international** DashScope endpoint. If you're using the China region, override per SiteAccess:

RegionBase URIInternational (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
-------------

[](#configuration)

### Available Qwen Models

[](#available-qwen-models)

> ⚠️ **Retired models** (do not use): `qwen-max`, `qwen-plus`, `qwen-turbo`, `qwen2.5-*` series are deprecated.

#### Text Models

[](#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 &amp; 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)

[](#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

[](#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

[](#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)

[](#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.0`
- `default_max_tokens`: `4000`
- `models`: all current Qwen models as defined in the Configuration class

### Production-Optimized Configuration

[](#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
-------

[](#license)

MIT - See [LICENSE](LICENSE) for details.

Author
------

[](#author)

Ramzi Arfaoui - [ramzi\_arfa@hotmail.de](mailto:ramzi_arfa@hotmail.de)

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance90

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

51d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f444701f5c4c36a0bce616a679bf2e638d06a01f639acebed6d128dd9fca3182?d=identicon)[arfaram](/maintainers/arfaram)

---

Top Contributors

[![arfaram](https://avatars.githubusercontent.com/u/793247?v=4)](https://github.com/arfaram "arfaram (1 commits)")

---

Tags

aiibexa-dxpalibabaibexaqwen

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/arfaram-connector-qwen/health.svg)

```
[![Health](https://phpackages.com/badges/arfaram-connector-qwen/health.svg)](https://phpackages.com/packages/arfaram-connector-qwen)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
