定制 ruelluna/zep-php 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

ruelluna/zep-php

最新稳定版本:1.0.3

Composer 安装命令:

composer require ruelluna/zep-php

包简介

PHP Wrapper for Zep REST API

README 文档

README

READ THIS FIRST

We just use this package to get messages from Zep Open Source and display them in our own dashboard. There is no PATCH and DELETE endpoints in this package. We just use GET endpoints.

This is an unofficial PHP SDK for the Zep API. This package is not affiliated with Zep in any way.

Description

A PHP wrapper for Zep REST API, providing a convenient interface for interacting with Zep API endpoints. This package simplifies the process of making HTTP requests to the Zep API and handling responses.

Installation

Install the package via Composer:

composer require ruelluna/zep-php

Configuration

Before using the Zep PHP SDK, you must set up the required environment variables. Define ZEP_API_KEY and ZEP_BASE_URL in your project's environment file:

ZEP_API_KEY=
ZEP_BASE_URL=

Usage

To use the SDK, first create an instance of the Session class. This will automatically initialize the ZepApiClient with your API key and base URL.

use RuelLuna\ZepPhp\Session;
use RuelLuna\ZepPhp\Message;

// get all sessions
$sessions = Session::getAll(); 

// get a single session
$session = Session::getSession([session-id]); 

// get all messages within a session
$messages = Message::getAll([session-id]); 

// get message from a session
$messages = Message::getMessage([session-id], [message-id]); 

Or Create instances passing API key and base URL

$sessionRequest = \RuelLuna\ZepPhp\Session::make('your-api-key', 'your-base-url');

return $sessionRequest->getAll();

Contributing

We welcome contributions from the community. If you wish to contribute, please submit a pull request.

License

This package is open-sourced software licensed under the MIT license.

统计信息

  • 总下载量: 6
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-04-03