alrayyes / hush-hush
Official PHP SDK for hush-hush, generated from its OpenAPI spec
Requires
- php: >=8.2
- guzzlehttp/guzzle: 7.15.5
- psr/http-client: 1.0.3
- psr/http-factory: 1.1.0
Requires (Dev)
- ergebnis/composer-normalize: 2.54.0
- friendsofphp/php-cs-fixer: 3.95.27
- infection/infection: 0.35.6
- pact-foundation/pact-php: 10.2.1
- phpmd/phpmd: 3.0.0
- phpstan/phpstan: 2.3.1
- phpunit/phpunit: 13.4.2
- rector/rector: 2.7.0
- roave/security-advisories: dev-latest
- squizlabs/php_codesniffer: 4.0.4
Suggests
None
Provides
None
Conflicts
None
Replaces
None
- dev-main
- v6.0.46
- v6.0.45
- v6.0.44
- v6.0.43
- v6.0.42
- v6.0.41
- v6.0.40
- v6.0.39
- v6.0.38
- v6.0.37
- v6.0.36
- v6.0.35
- v6.0.34
- v6.0.33
- v6.0.32
- v6.0.31
- v6.0.30
- v6.0.29
- v6.0.28
- v6.0.27
- v6.0.26
- v6.0.25
- v6.0.24
- v6.0.23
- v6.0.22
- v6.0.21
- v6.0.20
- v6.0.19
- v6.0.18
- v6.0.17
- v6.0.16
- v6.0.15
- v6.0.14
- v6.0.13
- v6.0.12
- v6.0.11
- v6.0.10
- v6.0.9
- v6.0.8
- v6.0.7
- v6.0.6
- v6.0.5
- v6.0.4
- v6.0.3
- v6.0.2
- v6.0.1
- v6.0.0
- v5.0.16
- v5.0.15
- v5.0.14
- v5.0.13
- v5.0.12
- v5.0.11
- v5.0.10
- v5.0.9
- v5.0.8
- v5.0.7
- v5.0.6
- v5.0.5
- v5.0.4
- v5.0.3
- v5.0.2
- v5.0.1
- v5.0.0
- v4.0.2
- v4.0.1
- v4.0.0
- v3.4.16
- v3.4.15
- v3.4.14
- v3.4.13
- v3.4.12
- v3.4.11
- v3.4.10
- v3.4.9
- v3.4.8
- v3.4.7
- v3.4.6
- v3.4.5
- v3.4.4
- v3.4.3
- v3.4.2
- v3.4.1
- v3.4.0
- v3.3.1
- v3.3.0
- v3.2.0
- v3.1.1
- v3.1.0
- v3.0.1
- v3.0.0
- v2.0.0
- v1.1.0
- v1.0.1
- v1.0.0
This package is auto-updated.
Last update: 2026-11-02 05:44:50 UTC
README
The official PHP SDK for hush-hush, generated from its OpenAPI spec and kept in sync with it automatically.
Install
composer require alrayyes/hush-hush
Requires PHP 8.2 or newer.
Quickstart
use HushHush\Client; $client = new Client('https://hush-hush.example.com', 'your-api-key'); // or set HUSH_HUSH_API_KEY // Create is a write operation — it needs the credential above. $client->createObject('my-first-secret', 'already-sealed-ciphertext'); // Get needs no credential — hush-hush's confidentiality boundary is // "who holds a matching private key," not who's calling this endpoint. $value = $client->getObject('my-first-secret'); echo 'got ' . strlen($value) . " bytes of sealed ciphertext\n"; // The audit log records every read and write; querying it needs no // credential either, and returns the full matching result set (there's // no pagination on this endpoint). foreach ($client->queryAuditLog() as $entry) { echo $entry->getAction() . ' ' . $entry->getObjectId() . ' ' . $entry->getTimestamp()->format(DATE_ATOM) . "\n"; }
The API key is only required for write operations (create/update/delete);
reads (get, used-by, audit-log query) work without one. A per-call $caller
argument, accepted by create/get/update/delete, is optional. See the
full API reference for
everything else. The latest green run's test and coverage reports are at
https://apis.ryankes.eu/hush-hush-php/reports/.
Versioning
This SDK's version tracks hush-hush's OpenAPI spec, not this repo's own commit history — see CONTRIBUTING.md for how a spec change becomes a release.