PHPackages                             xsuchy09/uctenkovka - 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. xsuchy09/uctenkovka

ActiveLibrary[API Development](/categories/api)

xsuchy09/uctenkovka
===================

Library for connection to Uctenkovka API (send EET receipts into Uctenkovka).

v1.0.0(7y ago)14BSD-3-ClausePHPPHP &gt;=7.1

Since Feb 14Pushed 7y ago1 watchersCompare

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

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

Uctenkovka
==========

[](#uctenkovka)

PHP library for communication with Uctenkovka (EET Czech Republic competition with receipts). See [Uctenkovka.cz](https://www.uctenkovka.cz/). PHP 7.1+ is required.

Authors:

- Petr Suchy ([xsuchy09](mailto:suchy@wamos.cz?subject=GitHub%20-%20Uctenkovka) - [WAMOS.cz](https://www.wamos.cz))

Overview
--------

[](#overview)

Uctenkovka library can send receipts directly into Uctenkovka competition.

Installation (via composer)
---------------------------

[](#installation-via-composer)

[Get composer](http://getcomposer.org/doc/00-intro.md) and add this in your requires section of the composer.json:

```
{
    "require": {
        "xsuchy09/uctenkovka": "*"
    }
}

```

and then

```
composer install

```

or just

```
composer require xsuchy09/uctenkovka

```

Usage
-----

[](#usage)

You have to have own certificates to communicate with Uctenkovka. See [etrzby](https://www.etrzby.cz/) for more info. In czech language there are two important documents:

- [Conditions](http://www.etrzby.cz/assets/cs/prilohy/Uctenkovka-3rd-party-API_podrobnosti-a-podminky-napojeni.pdf)
- [Specification](http://www.etrzby.cz/assets/cs/prilohy/Uctenkovka-3rd-party-API_technicka-specifikace.PDF)

This library covers specification but you have to fill all of the conditions.

### Basic Example

[](#basic-example)

You can see tests which are included in this repository. To run that tests you need own certs for communication with test server (see [Conditions](http://www.etrzby.cz/assets/cs/prilohy/Uctenkovka-3rd-party-API_podrobnosti-a-podminky-napojeni.pdf) in Czech language). Save your `test_crt.pem` and `test_key.pem` into the `/src/certs/` folder and then you can run the tests which will generate PhpUnit cover report too (100% btw).

#### How to send receipt/request into Uctenkovka

[](#how-to-send-receiptrequest-into-uctenkovka)

```
use xsuchy09\Uctenkovka\Request;
use xsuchy09\Uctenkovka\Uctenkovka;

$request = new Request();
$request->setEmail('test@example.com')
	->setPhone('777777777')
	->setBasicConsent(true)
	->setFik('B3A09B52-7C87-4014')
	->setBkp('01234567-89abcdef')
	->setDate('2018-03-17')
	->setTime('16:41')
	->setAmount(4570) // in hellers
	->setSimpleMode(false);

$uctenkovka = new Uctenkovka();
$uctenkovka->setMode(Uctenkovka::MODE_TESTING);
$uctenkovka->setSslCert(__DIR__ . '/../src/certs/test_crt.pem');
$uctenkovka->setSslKey(__DIR__ . '/../src/certs/test_key.pem');
$uctenkovka->send($request);
```

You can set date and time of receipt (request) at once with `\DateTime` object:

```
$request->setDateTime(DateTime::createFromFormat('Y-m-d H:i:s', $date)); // seconds are optional
```

You can set all of receipt/request values as array - not required param of `Request` constructor:

```
use xsuchy09\Uctenkovka\Request;

$request = new Request([
    'email' => 'test@example.com',
    'phone' => '777777777',
    'basicConsent' => true,
    'fik' => 'B3A09B52-7C87-4014',
    'bkp' => '01234567-89abcdef',
    'date' => '2018-03-17',
    'time' => '16:41',
    'amount' => 4570,
    'simpleMode' => false
]);
```

More examples can be found in the `/tests/` directory.

Usage is clear and easy. You can [contact me](mailto:suchy@wamos.cz?subject=GitHub%20-%20Uctenkovka) if you need.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

2642d ago

### Community

Maintainers

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

---

Top Contributors

[![xsuchy09](https://avatars.githubusercontent.com/u/1107359?v=4)](https://github.com/xsuchy09 "xsuchy09 (12 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/xsuchy09-uctenkovka/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M475](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M270](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M453](/packages/google-gax)

PHPackages © 2026

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