Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

⚡️ supercharged community-maintained PHP API client that allows you to interact with Alibaba Qwen AI API

License

NotificationsYou must be signed in to change notification settings

qwen-php/qwen-php-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Qwen Usage

qwen PHP Client

Table of Contents


Overview

qwen PHP Client is a robust and community-driven PHP client library for seamless integration with theQwen API.

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

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

Basic Usage

useQwen\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 configsCheck Default Values

Advanced Usage

useQwen\QwenClient;useQwen\Enums\Queries\QueryRoles;useQwen\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


Testing

tests will come soon .

Changelog

SeeCHANGELOG for recent changes.

Contributors ✨

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

Omar AlAlwi
Omar AlAlwi

🏆 Creator

Want to contribute? Check out thecontributing guidelines and submit a pull request! 🚀

Security

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

License

The MIT License (MIT). SeeLICENSE for more information.

Packages

No packages published

Contributors3

  •  
  •  
  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp