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

ActiveLibrary[API Development](/categories/api)

qwen-php/qwen-laravel
=====================

A seamless Laravel integration for the qwen PHP client, enabling effortless interaction with the qwen API in your Laravel applications.

1.0.0(1y ago)152.9k3MITPHPPHP ^8.1.0

Since Jan 31Pushed 1y agoCompare

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

READMEChangelog (1)Dependencies (6)Versions (2)Used By (0)

qwen AI Laravel
===============

[](#qwen-ai-laravel)

Laravel wrapper for **[qwen PHP client](https://github.com/qwen-php/qwen-php-client)** to seamless Alibaba [qwen AI](https://www.qwen.ai) API integration with Laravel applications.

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

[](#table-of-contents)

- [Installation](#installation)
    - [Publishing Configuration File](#publishing-configuration-file)
- [Usage](#usage)
    - [Basic Usage](#basic-usage)
    - [Advanced Usage](#advanced-usage)
- [Testing](#testing)
- [Contributors](#contributors-)
- [Changelog](#changelog)
- [Security](#security)
- [License](#license)

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

[](#installation)

You can install the package via composer:

```
composer require qwen-php/qwen-laravel
```

### Publishing Configuration File

[](#publishing-configuration-file)

```
php artisan vendor:publish --tag=qwen
```

then add token to `.env` file

```
QWEN_API_KEY="your_api_key"
```

Usage
-----

[](#usage)

### Basic Usage

[](#basic-usage)

```
use QwenClient;

$Qwen = app(QwenClient::class);
$response = $Qwen->query('Hello qwen, I am Laravel Framework , how are you Today ^_^ ?')->run();
print_r("qwen 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 QwenClient;

$qwen = app(QwenClient::class);

// Another way, with customization
$response = $qwen
    ->query('Hello qwen, how are you ?', 'system')
    ->query('Hello qwen, my name is PHP ', 'user')
    ->withModel("qwen-vl-max")
    ->setTemperature(1.5)
    ->run();

print_r("qwen API response : " . $response);
```

Testing
-------

[](#testing)

Tests will come soon

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! 🚀

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

### Security

[](#security)

If you discover any security-related issues, please email  instead of using the issue tracker.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance42

Moderate activity, may be stable

Popularity28

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity46

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

466d 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 (4 commits)")

---

Tags

aiai-sdkalibaba-aialibaba-apialibaba-cloudalibabaaiclientdata-processingdeepseeknaturalnatural-language-processingopenaiphp-aiprocessingqwen-apiqwen-clientqwen-coderqwen-laravelqwen-phpqwen-php-clientopenailaravel-aiAlibaba cloudqwen-apiphp-qwenalibaba-aiqwen-coderqwen-integrationalibaba-apiqwen-phpqwen-laravelalibabaaiqwen-php-clientlaravel-qwenqwen-package

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[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

213.2k1](/packages/qwen-php-qwen-php-client)[deepseek-php/deepseek-laravel

A seamless Laravel integration for the Deepseek PHP client, enabling effortless interaction with the Deepseek API in your Laravel applications.

40234.9k1](/packages/deepseek-php-deepseek-laravel)[openai-php/symfony

Symfony Bundle for OpenAI

215715.5k3](/packages/openai-php-symfony)[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)[kirschbaum-development/laravel-openapi-validator

Automatic OpenAPI validation for Laravel HTTP tests

581.1M5](/packages/kirschbaum-development-laravel-openapi-validator)[maltekuhr/laravel-gpt

Streamlined integration of OpenAI's ChatGPT (GPT-3.5, GPT-4) into Laravel applications.

117130.9k4](/packages/maltekuhr-laravel-gpt)

PHPackages © 2026

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