vat-engine / sdk
Direct PHP SDK for the VAT Engine public CORE API
Requires
- php: >=8.3 <8.7
- php-64bit: >=8.3 <8.7
- ext-json: *
- ext-pcre: *
Requires (Dev)
- phpstan/phpstan: 2.3.7
- phpunit/phpunit: 12.5.45
- squizlabs/php_codesniffer: 4.0.4
Suggests
- ext-curl: Required for the reference HTTP transport, with libcurl 7.87+, TLS and asynchronous DNS.
- ext-zlib: Required to opt in to gzip response decoding.
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-12-03 22:33:29 UTC
README
Call the VAT Engine public CORE API from a server-side PHP application. The Direct SDK provides 55 typed operations across 14 modules for VAT information and calculations, committed supplies, and reporting. Durable Delivery is optional and covers committed supplies and their supported corrections.
| Composer package | Qualified archive version | Purpose |
|---|---|---|
vat-engine/sdk |
0.1.0-RC1 |
Direct CORE client |
vat-engine/durable |
0.1.0-alpha.2 |
Immutable supply intents and supervised worker |
vat-engine/durable-postgres |
0.1.0-alpha.2 |
Reference storage for the application's own database |
Packagist lists the Direct SDK as dev-main, a moving development branch for evaluation. Tagged releases and the optional packages are pending. To install a qualified build, follow the local Composer archive installation. Verify the archive checksum supplied with your release candidate. Matching version labels alone do not identify archive bytes.
Quickstart
Use a security-patched 64-bit PHP 8.3–8.6 runtime that meets the native transport requirements. In your Composer application, save this as health.php and run php health.php. The health check is anonymous.
<?php require __DIR__ . '/vendor/autoload.php'; use VatEngine\Sdk\VatClient; $response = (new VatClient())->system()->health(); echo $response->status, ' ', $response->data->getStatus(), PHP_EOL;
For authenticated calls, inject a server-side key and choose a trusted deployment. Use an independently verified binding when you want strict context protection.