neonbug / fiscal-verification
Slovenian Fiscal Verification
Installs: 2 726
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 5
Forks: 1
Open Issues: 0
Requires
- php: >=7.3.0
- endroid/qr-code: ^4.1.3
- evenement/evenement: ^3.0.1
- spomky-labs/base64url: ^v2.0.4
Requires (Dev)
- justinrainbow/json-schema: ^5.2.10
- phpunit/phpunit: ^9.5.4
- squizlabs/php_codesniffer: ^2.5.0
README
Implementation of the JSON standard for fiscal verification of invoices in Slovenia.
More info available at their site: http://www.datoteke.fu.gov.si/dpr/index_en.html
Install
Via Composer
$ composer require neonbug/fiscal-verification
Usage
See tests
folder (esp. InvoiceTest.php
) for usage examples.
Testing
Convert your test certificate to PEM format and place it in tests/assets
folder.
Open tests/_config.php
and fill out all the information (for every test to be run successfully, all fields are required).
Afterwards, open a terminal, navigate to the project's folder and run
$ composer test
TODO
- more tests,
- better error handling,
- implement batch invoices (i.e. /v1/cash_registers_batch/invoices),
- a (more robust) system for retrying requests.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email tadej@ncode.si instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.