Download the PHP package captur/events without Composer
On this page you can find all versions of the php package captur/events. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download captur/events
More information about captur/events
Files in captur/events
Informations about the package events
captur.events PHP SDK
Official-style PHP client for the captur.events event ingestion API.
Base URL: https://captur.events · Default version: v1
Docs: Introduction · OpenAPI
Install
Requires PHP 8.3+.
Authentication
Create a project in the dashboard and copy a test (evt_test_…) or live (evt_live_…) API key.
Every request sends Authorization: Bearer <key>.
Quick start
Optional client options:
Events
Single ingest
Batch ingest
POST a JSON array (max 500). Response shape: { "events": [ … ] }.
List, get, delete
Pagination (list events)
Use either offset (page) or cursor (cursor / starting_after) — not both.
Offset pagination (page + limit):
Cursor pagination (preferred for large histories / continuous sync):
Or continue after a known event id:
Event types
Pagination (list event types)
Offset:
Cursor:
Streams
Pagination (read stream)
Stream reads return events under events (not data).
Offset:
Cursor:
Or continue after a known event id:
Session reports
Pagination (session reports)
Offset:
Cursor:
Webhooks
Test inbox helpers: testInbox(), upsertTestInbox(), deleteTestInbox(), sendTestInboxSample().
Pagination (list webhooks)
Offset:
Cursor:
Alerts
Pagination (list alerts)
Offset:
Cursor:
Projections
Pagination (list projections)
Offset:
Cursor:
Verify webhook signatures
captur signs deliveries with HMAC-SHA256 over the exact raw body (X-Captur-Signature).
Errors
Non-2xx responses throw typed exceptions under Captur\Exceptions\:
| Status | Exception |
|---|---|
| 401 | AuthenticationException |
| 403 | AuthorizationException |
| 404 | NotFoundException |
| 409 | ConflictException |
| 422 | ValidationException |
| 429 | RateLimitException |
| other | ApiException |
Development
Docker:
CI runs on push/PR to main: standards check plus tests with a 100% coverage gate.