Download the PHP package qopanza/sdk without Composer
On this page you can find all versions of the php package qopanza/sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package sdk
Short Description PHP client for the Qopanza API (post-quantum cryptography + crypto discovery)
License Apache-2.0
Homepage https://qopanza.com
Informations about the package sdk
qopanza/sdk (PHP)
PHP client for the Qopanza API.
Two homes, one codebase. Packagist reads
composer.jsonfrom the root of the repository it is given, and here it sits one directory down. So this directory is mirrored to qopanza-php and published from there asqopanza/sdk. The code is identical; the mirror exists only to satisfy that layout rule.Development happens in qopanza-sdks — issues and pull requests go there, so the PHP client is discussed alongside the eight other clients of the same API rather than in a repository of its own.
Install
Requires PHP 8.1+ with the curl and json extensions. No runtime
dependencies beyond those.
Usage
Get an API key by signing up first — it is shown exactly once.
Run the quickstart (no composer install needed — it uses a small
autoloader):
Notes
- Raw strings, not base64. Base64 is applied internally; passing pre-encoded data double-encodes it.
verify()returnsfalseonly for a genuinely invalid signature. A failed call throwsQopanzaApiExceptioninstead — treating an unreachable API as "invalid signature" is how a verification step silently becomes a no-op.- A failed scan has a null
risk_score, not zero. QopanzaApiException::getStatusCode()is separate from the message, so a 409 from a revoked key can be handled differently from a 429 rate limit. A status of0means the request never reached the API.- The constructor takes an optional transport callable, which is how the test suite exercises request encoding without a network.
This client holds a secret API key, so it belongs server-side — never ship it to a browser.
Tests
All versions of sdk with dependencies
ext-curl Version *
ext-json Version *