Download the PHP package pfinalclub/coze_sdk without Composer

On this page you can find all versions of the php package pfinalclub/coze_sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package coze_sdk

Coze AI PHP SDK

PHP Version

一个功能完整、设计优雅的 Coze AI 平台 PHP SDK,提供机器人管理、聊天对话、会话管理等核心功能。

✨ 特性

📦 安装

🚀 快速开始

基本配置

聊天功能

机器人管理

流式聊天

SDK 提供了强大的流式传输支持,支持多种处理方式:

基本流式传输

高级流式传输(推荐)

高级流式传输功能

SDK 还提供了更高级的流式传输功能:

流式处理器类型

SDK 提供了多种流式处理器:

📚 API 文档

Application 类

主要的应用配置和管理类。

Chat 类

聊天对话功能。

Bot 类

机器人管理功能。

🔧 配置选项

配置项 类型 必需 描述
kid string 是 密钥ID
iss string 是 发行者ID
keyPath string 是 私钥文件路径
botId string 否 机器人ID
iat string 否 令牌签发时间(默认当前时间)
exp string 否 令牌过期时间(默认1小时后)
token string 否 预生成的令牌

🧪 测试

运行测试

测试脚本

快速测试

测试环境

详细测试说明请参考 测试指南

📝 日志

SDK 提供了完整的日志记录功能:

🔄 缓存

SDK 支持多种缓存策略:

🛠️ 错误处理

SDK 提供了详细的错误处理:

🤝 贡献

欢迎提交 Issue 和 Pull Request!

  1. Fork 本仓库
  2. 创建特性分支 (git checkout -b feature/AmazingFeature)
  3. 提交更改 (git commit -m 'Add some AmazingFeature')
  4. 推送到分支 (git push origin feature/AmazingFeature)
  5. 打开 Pull Request

📄 许可证

本项目采用 MIT 许可证 - 查看 LICENSE 文件了解详情。

👨‍💻 作者

PFinal南丞 - GitHub - [email protected]

🙏 致谢

感谢 Coze AI 平台提供的优秀 API 服务。


⭐ 如果这个项目对你有帮助,请给它一个星标!


All versions of coze_sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
symfony/http-client Version ^7.1
psr/simple-cache Version ^3.0
symfony/cache Version ^7.1
firebase/php-jwt Version ^6.10
ext-openssl Version *
ext-http Version *
ext-json Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package pfinalclub/coze_sdk contains the following files

Loading the files please wait ...