Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 

PHP Client for EET

Downloads this Month Latest stable

Installation

Install ajandera/eet using Composer:

$ composer require ajandera/eet

Dependencies

  • PHP >=5.6
  • php extensions: php_openssl.dll, php_soap.dll

Included WSDL, key and certificate for non-production usage (Playground).

Example Usage

Sample codes are located in examples/ folder

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

License

MIT

--

Library is used in CRM/ERP system shopyCRM (shopycrm.org)

About

PHP Client for EET

Resources

License

Packages

No packages published

Languages