vested-ai / connector-sdk-php
Official PHP SDK for the Vested AI ConnectorHub.
0.2.2
2026-05-26 12:28 UTC
Requires
- php: ^8.3
- ext-json: *
- ext-openssl: *
- ext-swoole: ^5.1 || ^6.0
- firebase/php-jwt: ^6.10
- google/protobuf: ^4.0
- opis/json-schema: ^2.6
- psr/log: ^3.0
- symfony/console: ^7.0
Requires (Dev)
- mockery/mockery: ^1.6
- open-telemetry/sdk: ^1.0
- pestphp/pest: ^4.6
- phpstan/phpstan: ^1.11
- psr/container: ^2.0
Suggests
- open-telemetry/sdk: Enables tracing of connector lifecycle and tool calls
- psr/container: Required for DI-resolved class-based tool handlers
README
PHP SDK for the Vested AI ConnectorHub. Lets your PHP service register agents + tools with the platform over a long-lived gRPC stream.
Three ways to deploy
| Mode | When to use |
|---|---|
| Docker image | Customer wants zero PHP setup. docker run vestedai/vested-ai-connector-sdk-php:latest … |
| CLI binary | Customer manages their own host. composer require vested-ai/connector-sdk-php + vendor/bin/vested-connect worker … |
| Embedded library | Customer wants to wire the connector into their existing Symfony/Laravel daemon supervisor. Build a ConnectorApp and call $app->runSwooleDaemon($token, $hubAddr) from inside \Swoole\Coroutine\run(...). |
Quickstart
See docs/quickstart.md and examples/minimal-builder.php.
Requirements
PHP 8.3+, ext-swoole.
Run vendor/bin/vested-connect doctor to check.
v0.2 requires the Swoole PHP extension (pecl install swoole). For ext-grpc-based v0.1, pin to ^0.1.