redeyed/sdk 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

redeyed/sdk

Composer 安装命令:

composer require redeyed/sdk

包简介

Official Redeyed API client for PHP — AI tools, Sentinel human verification & IP reputation. Free to install; requires a Redeyed API key to activate.

README 文档

README

Official PHP client for the Redeyed API — AI creator tools, Sentinel human verification & IP reputation. Dependency‑free (uses cURL), works in any PHP project or CMS.

Free to install. Activated by your API key. The client refuses to run without a Redeyed API key. Create one in your Laboratory panel under Developer → API Keys.

Install

composer require redeyed/sdk

Requires PHP 8.1+ with the curl and json extensions.

Quick start

use Redeyed\Client;
use Redeyed\RedeyedException;

// A key is required — the client throws without one.
$redeyed = new Client(getenv('REDEYED_API_KEY'));

try {
    $me  = $redeyed->me();                    // account + remaining quota
    $rep = $redeyed->ip('8.8.8.8');           // IP reputation (omit arg = caller)
    $ok  = $redeyed->verify($tokenFromWidget, ['site_key' => 'st_pub_…']);

    $chat = $redeyed->aiChat(['messages' => [['role' => 'user', 'content' => 'Three taglines, please.']]]);
    $para = $redeyed->aiParaphrase(['text' => 'Make this confident.']);
    $img  = $redeyed->aiImage(['prompt' => 'a neon fox, cinematic']);
} catch (RedeyedException $e) {
    // $e->errorCode (e.g. insufficient_scope), $e->status (e.g. 403), $e->getMessage()
}

Methods

Method Endpoint Scope
me() GET /me account:read
ip(?string $ip) GET /ip/{ip?} sentinel:ip
verify(string $token, array $params = []) POST /verify sentinel:verify
aiChat(array $params) POST /ai/chat ai:chat
aiParaphrase(array $params) POST /ai/paraphrase ai:paraphrase
aiImage(array $params) POST /ai/image ai:image

Each returns the unwrapped data array, or throws RedeyedException on an error response.

Configuration

new Client($apiKey, [
    'base_url' => 'https://redeyed.com/api/v1', // override for self-hosted/staging
    'timeout'  => 60,                            // seconds
]);

License

MIT © Redeyed Corporation. Support: dev@redeyed.com

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-06-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固