Skip to content

rapidaai/rapida-php

Repository files navigation

Rapida PHP SDK

PHP client SDK for Rapida platform APIs (client operations only, no agent stream/WebRTC in this package).

Installation

composer require rapidaai/php

Quick Start

<?php

require 'vendor/autoload.php';

use Rapida\Config\ConnectionConfig;
use Rapida\Rapida;

$config = ConnectionConfig::default(
    ConnectionConfig::withSdk('YOUR_API_KEY', 'user-123')
);

$sdk = new Rapida($config);

// Example: call assistant get-all RPC
// $request = new Rapida\Clients\Protos\GetAllAssistantRequest();
// $response = $sdk->assistants()->getAll($request);

Included Client Modules

  • AssistantClient
  • AuthClient
  • EndpointClient
  • InvokeClient
  • CallClient
  • TalkClient (unary metrics/listing only)
  • KnowledgeClient
  • ProjectClient
  • OrganizationClient
  • VaultClient
  • ConnectClient
  • ActivityClient
  • DocumentClient
  • NotificationClient
  • BillingClient
  • TelemetryClient

Generate Artifacts

Artifacts are generated from proto files under src/Clients/Protos/Artifacts.

bash ./bin/artifacts-generate.sh

Requirements:

  • protoc
  • grpc_php_plugin

Publish Flow

Publishing is handled in .github/workflows/php-build.yml:

  • run tests on push/PR
  • create version tag from version.txt
  • create GitHub Release
  • trigger Packagist update (if PACKAGIST_USERNAME and PACKAGIST_TOKEN are configured)

Notes

  • This SDK is intentionally scoped to client unary APIs.
  • Streaming APIs (agent stream/WebRTC) are out of scope in this package.

About

About Open-source php SDK for real-time Voice AI, voice agents, streaming audio, and observability using Rapida.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

No contributors