Download the PHP package gamebay/rksv without Composer
On this page you can find all versions of the php package gamebay/rksv. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package rksv
Short Description Austrian RKSV implementation with PrimeSign online certificate signing service
License GPL-3.0-or-later
Informations about the package rksv
Austrian cash register fiscalization
Please be aware this repository is still under active development if you plan to use it in a production environment.
In Austria the fiscalization process is called Registrierkassensicherheitsverordnung (RKSV).
In this repository, we use about PrimeSign online sign feature (via Cryptas).
What we took from them is a simple service which accepts RKSV payloads and then gives you a properly encrypted & signed response. Worry free and fewer complications with signing receipts. So what you need for this package to work is the following:
- PHP
- PrimeSign remote signing SaaS service for RKSV (for example: we took this one)
How it works
First you have to create a receipt with data which will be used for signing:
Using the created ReceiptData
, pass it on to ReceiptSigner
with other PrimeSign arguments and call the desired method for signing:
Getting the result of signing:
Beside normal signer, you can also call:
- cancel receipt signature
$receiptSigner->cancelSign();
- training receipt signature
$receiptSigner->trainingSign();
Null sign will use the cashBoxId
for generating chain value.
This is the first receipt you create when initializing receipt sequences.
The package will accept items, but will ignore them and overwrite with zero values.
Contributing
In case you notice any bugs, open up a new issue, so we can discuss it and fix it ASAP.
Keep in mind, this is an open source project and anyone can contribute by opening up a pull request so feel free to fix the bugs your selves in order to have them merged sooner. If you want to add a feature, please open up an issue, and then we can discuss further actions. Without opening a new issue we will ignore any pull requests for new features.
With new features please describe the changes you made within the pull request and place a link to an open issue which relates to your pull request.
Licence
The project is open sourced under GNU v3.0 public licence.
TODO and general
- implement proper unit tests which should cover hashing, encryption, qr code generation and other major-impact topics
- implement proper unit tests for entire process - normal sign, training sign and cancel sign + chaining of all those
- implement command which will gneerate the null reciept that can also be used
- documentation on code and RKSV process
- complete remove sign service factory and implement all logic inside a SignService class.
- revise all exeptions and poperly test them via unit tests
- revise all validators and see on what are needed and which can be added
- expand on info on how to incorporate into other peojects (if needed, discuss)
Updating this package works like this:
- commit
- push to master
- create tag
- push tag
- webhook is triggered to send tag to PHP packages repo
- convert tag to release - example github action is on other repos
Other repos using this one will need to update their packages entry to use latest version.
About us
Gamebay is a platform for managing gaming arenas, providing full support for running games and offering cash register solution as all in one software.
We are partners with Friendly Fire Esports arenas.
All versions of rksv with dependencies
guzzlehttp/guzzle Version ^7
chillerlan/php-qrcode Version ^3.1.1
ext-openssl Version *