Download the PHP package krasnyd/eet-client-php without Composer
On this page you can find all versions of the php package krasnyd/eet-client-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download krasnyd/eet-client-php
More information about krasnyd/eet-client-php
Files in krasnyd/eet-client-php
Package eet-client-php
Short Description PHP client for Czech EET 2.0 (Elektronická evidence tržeb) SOAP protocol
License MIT
Homepage https://github.com/krasnyd/eet-client-php
Informations about the package eet-client-php
eet-client-php
PHP client for the Czech EET 2.0 (Elektronická evidence tržeb) SOAP protocol (schema v4.1).
Builds a signed SOAP message (Trzba), sends it to the EET endpoint, and parses the Odpoved response.
Requirements
- PHP 8.2+
- Extensions:
dom,libxml,openssl - Guzzle 7.2+ / 8.0+
Installation
Usage
You can find a working playground example in examples/playground.php.
TrzbaHlavicka / TrzbaData validate values against EET XSD simple types on construction (UUID, EIC, id_jednotky, id_pokl, porad_cis, amounts).
On protocol or transport failure, EetClient::submit() throws Krasnyd\Eet\Exception\EetException. Successful and failed calls expose raw SOAP XML via SubmissionResult / EetException (requestXml, responseXml) for application-level logging or persistence.
Certificates
Playground certificates currently available from the official EET documentation are distributed as legacy PKCS#12 files (using RC2-40-CBC).
On systems using OpenSSL 3.x, PHP may fail to load these files with openssl_pkcs12_read(), because the legacy algorithms used inside the .p12 container are not enabled by default.
If PHP reports the certificate as unreadable even though the password is correct, re-export the certificate into a modern PKCS#12 container using the provided convert-certificates script:
Playground certificates provided in the resources folder are already converted to modern PKCS#12 containers.
Endpoints
| Environment | Constant / URL |
|---|---|
| Playground | EetSchema::PLAYGROUND_ADDRESS |
| Production | Configure your production URL based on the official documentation |
Testing
License
MIT — see LICENSE.
All versions of eet-client-php with dependencies
ext-dom Version *
ext-libxml Version *
ext-openssl Version *
guzzlehttp/guzzle Version ^7.2 || ^8.0