承接 qwen-php/qwen-php-client 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

qwen-php/qwen-php-client

最新稳定版本:1.0.1

Composer 安装命令:

composer require 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

README 文档

README

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 the Qwen 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

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

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

Laravel Qwen Package

Testing

tests will come soon .

Changelog

See CHANGELOG for recent changes.

Contributors ✨

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

Omar AlAlwi
Omar AlAlwi

🏆 Creator

Want to contribute? Check out the contributing 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). See LICENSE for more information.

统计信息

  • 总下载量: 3.22k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 20
  • 点击次数: 2
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 20
  • Watchers: 0
  • Forks: 6
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-01-31

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固