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.
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.
Install the package via Composer:
composer require ruelluna/zep-php
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=
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]);
$sessionRequest = \RuelLuna\ZepPhp\Session::make('your-api-key', 'your-base-url');
return $sessionRequest->getAll();
We welcome contributions from the community. If you wish to contribute, please submit a pull request.
This package is open-sourced software licensed under the MIT license.