PHPackages                             krasnyd/eet-client-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. krasnyd/eet-client-php

ActiveLibrary

krasnyd/eet-client-php
======================

PHP client for Czech EET 2.0 (Elektronická evidence tržeb) SOAP protocol

v1.0.0(today)13↑2900%MITPHPPHP ^8.2CI passing

Since Aug 9Pushed todayCompare

[ Source](https://github.com/krasnyd/eet-client-php)[ Packagist](https://packagist.org/packages/krasnyd/eet-client-php)[ Docs](https://github.com/krasnyd/eet-client-php)[ RSS](/packages/krasnyd-eet-client-php/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

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 Finanční správa endpoint, and parses the `Odpoved` response.

Requirements
------------

[](#requirements)

- PHP 8.2+
- Extensions: `dom`, `libxml`, `openssl`
- [Guzzle](https://github.com/guzzle/guzzle) 7.2+

Installation
------------

[](#installation)

```
composer require krasnyd/eet-client-php
```

While developing from a local path repository:

```
{
    "repositories": [
        {
            "type": "path",
            "url": "../path/to/eet-client-php"
        }
    ],
    "require": {
        "krasnyd/eet-client-php": "*@dev"
    }
}
```

Usage
-----

[](#usage)

```
use Krasnyd\Eet\Certificate;
use Krasnyd\Eet\ClientOptions;
use Krasnyd\Eet\EetClient;
use Krasnyd\Eet\Schema\EetSchema;
use Krasnyd\Eet\Schema\Trzba;
use Krasnyd\Eet\Schema\TrzbaData;
use Krasnyd\Eet\Schema\TrzbaHlavicka;

$trzba = new Trzba(
    hlavicka: new TrzbaHlavicka(
        uuidZpravy: /* UUID v4 */,
        datOdesl: new DateTimeImmutable('now', new DateTimeZone('Europe/Prague')),
        prvniZaslani: true,
        overeni: true, // verification mode – not stored as a sale
    ),
    data: new TrzbaData(
        eicPopl: 'CZ00000019',
        idJednotky: '1',
        idPokl: '1',
        poradCis: '1',
        datTrzby: new DateTimeImmutable('now', new DateTimeZone('Europe/Prague')),
        celkTrzba: 100.0,
    ),
);

$certificate = Certificate::fromPkcs12('/path/to/certificate.p12', 'password');

$result = (new EetClient)->submit(
    $trzba,
    $certificate,
    new ClientOptions(endpoint: EetSchema::PLAYGROUND_ADDRESS),
);

if ($result->success()) {
    echo $result->pok();
}
```

`TrzbaHlavicka` / `TrzbaData` validate values against EET XSD simple types on construction (UUID, EIC, `id_jednotky`, `id_pokl`, `porad_cis`, částky).

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.

Endpoints
---------

[](#endpoints)

EnvironmentConstant / URLPlayground`EetSchema::PLAYGROUND_ADDRESS`ProductionConfigure your production URL from Finanční správa documentationWSDL and XSD used by the client are shipped under `resources/`.

Testing
-------

[](#testing)

```
composer install
composer test
composer phpstan
```

License
-------

[](#license)

MIT — see [LICENSE](LICENSE).

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance100

Actively maintained with recent releases

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

0d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f7d44422b4387646216b177db4e71c8da362b262b3e528f2d4f5d1410c5b5ccc?d=identicon)[krasnyd](/maintainers/krasnyd)

---

Top Contributors

[![krasnyd](https://avatars.githubusercontent.com/u/39272969?v=4)](https://github.com/krasnyd "krasnyd (3 commits)")

---

Tags

czecheeteet-clientelektronicka-evidence-trzebsoap-clientsoapczechEETelektronická evidence tržeb

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/krasnyd-eet-client-php/health.svg)

```
[![Health](https://phpackages.com/badges/krasnyd-eet-client-php/health.svg)](https://phpackages.com/packages/krasnyd-eet-client-php)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k555.0M2.8k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k832.6k52](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.3M49](/packages/tencentcloud-tencentcloud-sdk-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

353.6k](/packages/eslazarev-wildberries-sdk)[tempest/framework

The PHP framework that gets out of your way.

2.3k37.6k19](/packages/tempest-framework)[files.com/files-php-sdk

Files.com PHP SDK

2482.9k](/packages/filescom-files-php-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
