neonbug/fiscal-verification

Slovenian Fiscal Verification

3.0.1 2022-02-15 08:22 UTC

This package is auto-updated.

Last update: 2024-12-15 14:36:07 UTC


README

Latest Version on Packagist Software License Build Status

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.