dev-master
9999999-devPHP Client for EET
MIT GPL-3.0 BSD-3-Clause GPL-2.0
The Requires
- php >=5.6.0
- robrichards/wse-php 2.0.0
The Development Requires
0.1.0
0.1.0.0PHP Client for EET
MIT GPL-3.0 BSD-3-Clause GPL-2.0
The Development Requires
Wallogit.com
2017 © Pedro Peláez
PHP Client for EET
Install ajandera/eet using Composer:, (*2)
$ composer require ajandera/eet
Included WSDL, key and certificate for non-production usage (Playground)., (*3)
Sample codes are located in examples/ folder, (*4)
use Ajandera\EET\Receipt;
use Ajandera\EET\Strings;
use Ajandera\EET\Sender;
$receipt = new Receipt();
$receipt->uuid_zpravy = Strings::generateUUID();
$receipt->dic_popl = 'CZ78394560012';
$receipt->id_provoz = '567';
$receipt->id_pokl = '2';
$receipt->porad_cis = '1';
$receipt->dat_trzby = new \DateTime();
$receipt->celk_trzba = 100;
$sender = new Sender(
new Certificates(__DIR__.'/../../examples/certifications/EET_CA1_Playground-CZ00000019.p12', 'eet'),
true
);
echo $sender->sendReceipt($receipt); // return FIK code if success
MIT, (*5)
--, (*6)
PHP Client for EET
MIT GPL-3.0 BSD-3-Clause GPL-2.0
PHP Client for EET
MIT GPL-3.0 BSD-3-Clause GPL-2.0