PHPackages                             fritak/eet - 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. [API Development](/categories/api)
4. /
5. fritak/eet

ActiveLibrary[API Development](/categories/api)

fritak/eet
==========

API for EET (electronic sales record) client in PHP

v1.3.3(9y ago)72.0k4MITPHPPHP &gt;=5.6.0

Since Sep 21Pushed 9y ago3 watchersCompare

[ Source](https://github.com/Fritak/eet)[ Packagist](https://packagist.org/packages/fritak/eet)[ RSS](/packages/fritak-eet/feed)WikiDiscussions master Synced 2mo ago

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

API for EET Client in PHP
=========================

[](#api-for-eet-client-in-php)

This code is an implementation of the EET ("elektronická evidence tržeb") in a PHP. Be aware that this library is working even from your localhost, if you have an internet connection.

INSTALLATION
------------

[](#installation)

```
composer require "fritak/eet"

```

REQUIREMENTS
------------

[](#requirements)

The minimum requirement is PHP 5.6 on your Web Server. Prerequisite are these libraries and php extensions:

- robrichards/wse-php
- robrichards/xmlseclibs
- ramsey/uuid
- Soap client. See
- Open SSL. See

SETUP
-----

[](#setup)

Example of config:

```
{
    "certificate": {
        "path": "./certificate/01000003.p12",
        "password": "eet"
    },
    "wsdlPath": "./soapFiles/EETServiceSOAP.wsdl",
    "defaultValues": {
        "dic_popl": "CZ1212121218",
        "id_provoz": "273",
        "id_pokl": "1"
    },
    "timeout": 10,
    "connectionTimeout": 3
}
```

- Move certificate (PKCS#12) to your path. (See information on how to get one, or use the certificate from "/example/certificate" for playground - TEST only)
- Set path to wsdl file for EET (you need to include XSD schema too).

Note:

- Example file for playground (EETServiceSOAP.wsdl) is v3 from [http://www.etrzby.cz](http://www.etrzby.cz/assets/cs/prilohy/EETServiceSOAP.wsdl)and XSD from [http://www.etrzby.cz](http://www.etrzby.cz/assets/cs/prilohy/EETXMLSchema.xsd)

BASIC USAGE
-----------

[](#basic-usage)

```
use Fritak\eet\Sender;

$sender = new Sender(__DIR__ . '/config.json'); // load Sender with configuration

$sender->addReceipt(['uuid_zpravy' => 'b3a09b52-7c87-4014-a496-4c7a53cf9125', 'porad_cis' => 68, 'celk_trzba' => 546]);

// You can let uuid_zpravy empty, it will be  automatically generated
$sender->addReceipt(['porad_cis' => 69, 'celk_trzba' => 748]);

foreach($sender->sendAllReceipts() AS $response)
{
    $response->Potvrzeni->fik; // Your FIK - Fiscal Identification Code ("Fiskální identifikační kód")
}
```

Change certificate or defalut values later on
---------------------------------------------

[](#change-certificate-or-defalut-values-later-on)

```
$sender->changeCertificate($certificate, $password);
$sender->changeDefaultValues($dic, $workshopId, $cashRegisterId);
```

ADVANCED USAGE - Receipt
------------------------

[](#advanced-usage---receipt)

```
use Fritak\eet\Sender;
use Fritak\eet\Receipt;

$sender = new Sender(__DIR__ . '/config.json'); // load Sender with configuration

$receipt = new Receipt();
$receipt->uuid_zpravy = 'b3a09b52-7c87-4014-a496-4c7a53cf9125'; // Or empty, it will be  automatically generated
$receipt->porad_cis   = '68';
$receipt->celk_trzba  = 546;

$receipt->dic_popl    = 'CZ1212121218';
$receipt->id_provoz   = '273';
$receipt->id_pokl     = '1';
$receipt->dat_trzby   = new \DateTime();

// Now we try dry run. Returns boolean TRUE/FALSE
if ($sender->dryRunSend($receipt))
{
    // Send receipt
    $fik = $sender->send($receipt)->Potvrzeni->fik;
}
```

Nette integration
-----------------

[](#nette-integration)

Nette Framework is an open-source framework for creating web applications in PHP 5 and 7. There is basic integration into your application.

Include library to your project. Include config files to your parameters.neon:

```
parameters:
	senderEetParameters:
		certificate:
			path: ''
			password: ''
		wsdlPath : ''
		defaultValues:
			dic_popl: ''
			id_provoz: ''
			id_pokl: ''
services:
	senderEet: Fritak\eet\Sender(%senderEetParameters%)
```

That's it! Now you can use it as noted above, for example action in presenter:

```
$sender = $this->context->getService('senderEet');
$sender->addReceipt(['porad_cis' => 85, 'celk_trzba' => 9875]);

foreach($sender->sendAllReceipts() AS $response)
{
    $response->Potvrzeni->fik;
}
```

Information
-----------

[](#information)

- [eTrzby](http://www.etrzby.cz/) Information
- [eTrzby](http://www.etrzby.cz/cs/novinky_autentizacni-udaje-k-evidenci-trzeb) - How to get certificate
- [technicka-specifikace](http://www.etrzby.cz/cs/technicka-specifikace) Technická specifikace
- [soap](http://php.net/manual/en/soap.setup.php)
- [openssl](http://php.net/manual/en/openssl.setup.php)

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 77.3% 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

Every ~30 days

Total

6

Last Release

3374d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/283db6980ccd8ad835cb896ad037c7bd64bcd2d159593ccab02f900a2754acbf?d=identicon)[Fritak](/maintainers/Fritak)

---

Top Contributors

[![Fritak](https://avatars.githubusercontent.com/u/9657317?v=4)](https://github.com/Fritak "Fritak (17 commits)")[![scholtz](https://avatars.githubusercontent.com/u/1223439?v=4)](https://github.com/scholtz "scholtz (5 commits)")

### Embed Badge

![Health badge](/badges/fritak-eet/health.svg)

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

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

2.3k12.2M45](/packages/knuckleswtf-scribe)[google/gax

Google API Core for PHP

265103.1M454](/packages/google-gax)[temporal/sdk

Temporal SDK

4002.2M18](/packages/temporal-sdk)[wheelpros/fitment-platform-api

Magento 2 (Open Source)

12.1k1.2k](/packages/wheelpros-fitment-platform-api)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

169425.2k8](/packages/pocketmine-bedrock-protocol)

PHPackages © 2026

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