PHPackages                             qwen-php/qwen-php-client - 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. qwen-php/qwen-php-client

ActiveLibrary[API Development](/categories/api)

qwen-php/qwen-php-client
========================

robust and community-driven PHP SDK library for seamless integration with the qwen AI API, offering efficient access to advanced AI and data processing capabilities

1.0.1(1y ago)213.2k—0%6[2 issues](https://github.com/qwen-php/qwen-php-client/issues)[1 PRs](https://github.com/qwen-php/qwen-php-client/pulls)1MITPHPPHP ^8.1.0

Since Jan 31Pushed 1y agoCompare

[ Source](https://github.com/qwen-php/qwen-php-client)[ Packagist](https://packagist.org/packages/qwen-php/qwen-php-client)[ Docs](https://github.com/qwen-php/qwen-php-client)[ RSS](/packages/qwen-php-qwen-php-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (17)Versions (3)Used By (1)

 [ ![Qwen Usage](https://github.com/qwen-php/qwen-php-client/raw/master/public/qwen_screenshot.png?raw=true) ](https://github.com/qwen-php/qwen-php-client)

qwen PHP Client
===============

[](#qwen-php-client)

Table of Contents
-----------------

[](#table-of-contents)

- [Overview](#Overview)
    - [Features](#key-Features)
- [Installation](#installation)
- [Quick Start Guide](#quick-start-guide)
    - [Basic Usage](#basic-usage)
    - [Advanced Usage](#advanced-usage)
    - [Use With Frameworks](#use-with-frameworks)
- [Testing](#testing)
- [Contributors](#contributors-)
- [License](#license)

---

Overview
--------

[](#overview)

**qwen PHP Client** is a robust and community-driven PHP client library for seamless integration with the [Qwen](https://qwenlm.ai/) API.

### Key Features

[](#key-features)

- **Easy Integration:** Simplifies interaction with the qwen API using a PHP client.
- **Method Chaining:** Supports fluent method chaining for building requests.
- **Customizable:** Allows setting different models, query roles, and streaming options.
- **PSR-18 Compliance:** Utilizes PSR-18 HTTP client for making API requests.

---

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

[](#installation)

You can install the package via Composer:

```
composer require qwen-php/qwen-php-client
```

**Ensure your project meets the following requirements:**

- PHP 8.1 or later

---

Quick Start Guide
-----------------

[](#quick-start-guide)

### Basic Usage

[](#basic-usage)

```
use Qwen\QwenClient;

$apiKey = 'your-api-key';

$response = QwenClient::build($apiKey)
    ->query('Hello qwen, how are you today?')
    ->run();

echo 'API Response:'.$response;
```

**Note**: in easy mode it will take defaults for all configs [Check Default Values](https://github.com/qwen-php/qwen-php-client/blob/master/src/Enums/Configs/DefaultConfigs.php)

### Advanced Usage

[](#advanced-usage)

```
use Qwen\QwenClient;
use Qwen\Enums\Queries\QueryRoles;
use Qwen\Enums\Models;

$apiKey = 'your-api-key';

$response = QwenClient::build($apiKey, 'https://dashscope-intl.aliyuncs.com', 500)
    ->query('System setup query', 'system')
    ->query('User input message', 'user')
    ->withModel(Models::QWEN_VL_MAX->value)
    ->run();

echo 'API Response:'.$response;
```

Use With Frameworks
-------------------

[](#use-with-frameworks)

### [Laravel Qwen Package](https://github.com/qwen-php/qwen-laravel)

[](#laravel-qwen-package)

---

Testing
-------

[](#testing)

tests will come soon .

Changelog
---------

[](#changelog)

See [CHANGELOG](CHANGELOG.md) for recent changes.

Contributors ✨
--------------

[](#contributors-)

Thanks to these wonderful people for contributing to this project! 💖

   [ ![Omar AlAlwi](https://avatars.githubusercontent.com/u/25439498?v=4)
 **Omar AlAlwi** ](https://github.com/omaralalwi)
 🏆 Creator  Want to contribute? Check out the [contributing guidelines](./CONTRIBUTING.md) and submit a pull request! 🚀

Security
--------

[](#security)

If you discover any security-related issues, please email creator : `omaralwi2010@gmail.com`.

License
-------

[](#license)

The MIT License (MIT). See [LICENSE](LICENSE.md) for more information.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance40

Moderate activity, may be stable

Popularity30

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 81.3% 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

Every ~0 days

Total

2

Last Release

472d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/46733da79a34ff686b036a09af1dcc6d21054aee25a5e029500dc87d3c69ba89?d=identicon)[WatheqAlshowaiter](/maintainers/WatheqAlshowaiter)

![](https://www.gravatar.com/avatar/92882431481b621f6509ff259dd600e327c27fc77adcba4fcc7177659059c9a8?d=identicon)[omaralalwi](/maintainers/omaralalwi)

![](https://www.gravatar.com/avatar/887b195a348fc5c5d3b1869ea7cd690e7e0dce669d6616584cda54116cdaca9f?d=identicon)[qwen-php](/maintainers/qwen-php)

---

Top Contributors

[![omaralalwi](https://avatars.githubusercontent.com/u/25439498?v=4)](https://github.com/omaralalwi "omaralalwi (13 commits)")[![moassaad](https://avatars.githubusercontent.com/u/155223476?v=4)](https://github.com/moassaad "moassaad (2 commits)")[![YassineDabbous](https://avatars.githubusercontent.com/u/10944169?v=4)](https://github.com/YassineDabbous "YassineDabbous (1 commits)")

---

Tags

ai-apiai-integrationai-integrationsalibaba-aialibaba-apialibabaaialibabacloudchineesaideepseek-phpgptnaturalopenaiphp-qwenprocessingqwenqwen-apiqwen-integrationqwen-phpqwen-php-libraryqwen-sdkapiclientsdklanguageprocessingnaturalcodexGPT-3openaidall-ephp-sdknlpmachine learningnatural language processingai apiapi integrationPHP LibraryAI SDKdeepseekphp-api-clientDeep learningphp machine learningphp aialibabaai-client-librarydeepseek-phpdata processingai-integrationqwenai-for-phpphp-iotphp-openai-alternativeqwen-php-sdkqwen-sdkqwen-apiphp-qwenalibaba-aiqwen-coderqwen-integrationqwen-php-libraryqwen-clientqwen-libraryqwen-ai

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/qwen-php-qwen-php-client/health.svg)

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

###  Alternatives

[openai-php/client

OpenAI PHP is a supercharged PHP API client that allows you to interact with the Open AI API

5.8k22.6M232](/packages/openai-php-client)[deepseek-php/deepseek-php-client

deepseek PHP client is a robust and community-driven PHP client library for seamless integration with the Deepseek API, offering efficient access to advanced AI and data processing capabilities.

47073.9k5](/packages/deepseek-php-deepseek-php-client)[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[mozex/anthropic-php

Anthropic PHP is a supercharged community-maintained PHP API client that allows you to interact with Anthropic API.

46365.1k13](/packages/mozex-anthropic-php)[openai-php/symfony

Symfony Bundle for OpenAI

215715.5k3](/packages/openai-php-symfony)

PHPackages © 2026

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