Download the PHP package xsuchy09/uctenkovka without Composer
On this page you can find all versions of the php package xsuchy09/uctenkovka. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download xsuchy09/uctenkovka
More information about xsuchy09/uctenkovka
Files in xsuchy09/uctenkovka
Package uctenkovka
Short Description Library for connection to Uctenkovka API (send EET receipts into Uctenkovka).
License BSD-3-Clause GPL-2.0 GPL-3.0
Informations about the package uctenkovka
Uctenkovka
PHP library for communication with Uctenkovka (EET Czech Republic competition with receipts). See Uctenkovka.cz. PHP 7.1+ is required.
Authors:
- Petr Suchy (WAMOS.cz)
Overview
Uctenkovka library can send receipts directly into Uctenkovka competition.
Installation (via composer)
Get composer and add this in your requires section of the composer.json:
and then
or just
Usage
You have to have own certificates to communicate with Uctenkovka. See etrzby for more info. In czech language there are two important documents:
This library covers specification but you have to fill all of the conditions.
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 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
You can set date and time of receipt (request) at once with \DateTime
object:
You can set all of receipt/request values as array - not required param of Request
constructor:
More examples can be found in the /tests/
directory.
Usage is clear and easy. You can contact me if you need.
All versions of uctenkovka with dependencies
ext-curl Version *
ext-openssl Version *
ext-mbstring Version *
ext-json Version *