PHP SDK
Requirements
With Guzzle or Symfony HttpClient installed, the SDK builds the HTTP client itself, with timeouts and redirects disabled (a redirect could carry your token to another origin; the API never redirects). With any other PSR-18 client, timeouts and redirects are that client’s configuration.
Install
Configure
Several PHP processes (FPM workers, queue workers, cron) can share one token: pass a PSR-16 cache as tokenCache:
(Redis, APCu, Laravel’s cache). It stores a bearer token, so use a private store.
First calls
Receive events
$evva->eventStream(…) combines realtime (WebSocket) with the feed: one handler, one dedup store, and a feed
catch-up after any gap. ServerCheckpointStore uses the API’s consumer groups, so several workers share one position.
Stores: InMemory* (tests only), File* (one host), Pdo* (SQLite, MySQL/MariaDB, PostgreSQL).
The PHP SDK speaks WebSocket only — PHP has no maintained WebTransport client. The semantics are identical.
Errors
All exceptions extend EvvaException; API errors carry status, requestId and details.
Webhooks
WebhookVerificationMiddleware (PSR-15) and the Laravel evva.webhook middleware answer the same statuses and
deduplicate the same way.
Laravel
An optional integration ships a service provider, the EvvaPartner alias (a Laravel Facade), configuration, the webhook middleware and a feed-consumer
command. It is used only when laravel/framework is installed.
