cqnce / sdk
Official PHP SDK for cQnce
v0.1.1
2026-08-05 14:30 UTC
Requires
- php: >=8.1
- ext-curl: *
README
This folder contains lightweight SDKs for common platforms with a consistent structure and minimal external dependencies.
Implemented SDKs:
- Python
- PHP
- C# (.NET Standard 2.0 compatible API surface)
- Go
- Java
- TypeScript (Node.js)
Each SDK focuses on:
- Request APIs (
POST /v1/requests,POST /v1/requests/{id}/cancel, plus polling helpers) - Callback management (HMAC verification for
X-cQnce-Signature)
Common behavior
- Base API path used by all SDKs:
.../v1 - Auth headers:
- API key flow:
x-api-key - Client credentials flow:
x-client-id+x-client-secret - Optional external-client scoping header:
x-client-id(with API key flow)
- API key flow:
Callback verification
cQnce signs callbacks as:
- Header:
X-cQnce-Signature: sha256=<hex> - Digest:
HMAC-SHA256(secret, rawRequestBodyBytes)
Always verify against the raw request body bytes.
Publishing
See sdk/PUBLISHING.md for package-manager specific publication flows (prerelease + production) for all SDKs.