2017 © Pedro Peláez
 

library eet

EET (Electronic records of sales for Czech Ministry of Finance) Client for PHP

image

ondrejnov/eet

EET (Electronic records of sales for Czech Ministry of Finance) Client for PHP

  • Thursday, March 2, 2017
  • by ondrej
  • Repository
  • 37 Watchers
  • 112 Stars
  • 16,037 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 40 Forks
  • 7 Open issues
  • 4 Versions
  • 17 % Grown

The README.md

Implementation of EET Client in PHP

Downloads this Month Latest stable, (*1)

Installation

Install ondrejnov/eet using Composer:, (*2)

$ composer require ondrejnov/eet

Dependencies

  • PHP >=5.6
  • robrichards/wse-php
  • php extensions: php_openssl.dll, php_soap.dll

Attached WSDL, key and certificate are intended for non-production usage (Playground)., (*3)

Example Usage

Sample codes are located in examples/ folder, (*4)

use Ondrejnov\EET\Dispatcher;
use Ondrejnov\EET\Receipt;
use Ondrejnov\EET\Utils\UUID;

$dispatcher = new Dispatcher(PLAYGROUND_WSDL, DIR_CERT . '/eet.key', DIR_CERT . '/eet.pem');

$r = new Receipt();
$r->uuid_zpravy = UUID::v4();
$r->dic_popl = 'CZ72080043';
$r->id_provoz = '181';
$r->id_pokl = '1';
$r->porad_cis = '1';
$r->dat_trzby = new \DateTime();
$r->celk_trzba = 1000;

echo $dispatcher->send($r); // FIK code should be returned

License

MIT, (*5)


Implementace EET klienta v PHP

Instalace

Instalace ondrejnov/eet pomocí Composer:, (*6)

$ composer require ondrejnov/eet

Závislosti

  • PHP >=5.6
  • robrichards/wse-php
  • php extensions: php_openssl.dll, php_soap.dll

Přiložené WSDL, klíč a certifikát jsou pro neprodukční prostředí (Playground)., (*7)

Ukázka použití

Ukázky použití naleznete ve složce examples/, (*8)

use Ondrejnov\EET\Dispatcher;
use Ondrejnov\EET\Receipt;

$dispatcher = new Dispatcher(PLAYGROUND_WSDL, DIR_CERT . '/eet.key', DIR_CERT . '/eet.pem');

$r = new Receipt();
$r->uuid_zpravy = 'b3a09b52-7c87-4014-a496-4c7a53cf9120';
$r->dic_popl = 'CZ72080043';
$r->id_provoz = '181';
$r->id_pokl = '1';
$r->porad_cis = '1';
$r->dat_trzby = new \DateTime();
$r->celk_trzba = 1000;

echo $dispatcher->send($r); // Měl by být vrácen FIK kód

Licence

MIT, (*9)


Reklama

Komu se nechce do implementace, tak může použít on-line službu EETApp.cz, která má pokročilejší správu účtenek včetně tisku na tiskárnu., (*10)

Bitcoin Donate

1LZuWFUHeVMrYvZWinxFjjkZtuq56TECot, (*11)

The Versions

02/03 2017

dev-master

9999999-dev

EET (Electronic records of sales for Czech Ministry of Finance) Client for PHP

  Sources   Download

MIT GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

The Development Requires

23/01 2017

v0.3

0.3.0.0

EET (Electronic records of sales for Czech Ministry of Finance) Client for PHP

  Sources   Download

MIT GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

The Development Requires

30/10 2016

v0.2

0.2.0.0

EET (Electronic records of sales for Czech Ministry of Finance) Client for PHP

  Sources   Download

MIT GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

The Development Requires

20/07 2016

v0.1

0.1.0.0

EET (Electronic records of sales for Czech Ministry of Finance) Client for PHP

  Sources   Download

MIT GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

The Development Requires