PHPackages                             bnussbau/rksv-parser-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. bnussbau/rksv-parser-php

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

bnussbau/rksv-parser-php
========================

Parses Austrian RKSV String and extracts information

v0.2.1(11mo ago)0187MITPHPPHP &gt;=8.0

Since Apr 19Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/bnussbau/rksv-parser-php)[ Packagist](https://packagist.org/packages/bnussbau/rksv-parser-php)[ RSS](/packages/bnussbau-rksv-parser-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

RKSV Parser PHP
===============

[](#rksv-parser-php)

A PHP package for parsing RKSV (Registrierkassen-Sicherheitsverordnung) receipts, specifically designed for Austrian cash register systems.

Features
--------

[](#features)

- Parse RKSV receipt strings
- Extract receipt details including:
    - Cash register algorithm identifier
    - Cash register ID
    - Receipt number
    - Receipt date and time
    - Tax amounts (normal, reduced rates, zero, special)
    - Turnover counter
    - Certificate serial number
    - Company EU VAT ID
    - Signature values
- Support for SPAR JSON response format
- Calculate total amounts including tax
- Calculate individual tax amounts for different tax rates

Installation
------------

[](#installation)

```
composer require bnussbau/rksv-parser-php
```

Usage
-----

[](#usage)

### Basic Usage

[](#basic-usage)

```
use Bnussbau\Rksv\RksvParser;

$rksvString = "_R1-AT0_0003111_0003111001000202404157928_2024-04-15T16:28:54_0,00_13,80_0,00_0,00_0,00_4jJVnlBGlgw=_U:ATU59193205-001_xg2ik+BDjGE=_MRuODBrEHpIbqWbi+JbMg3A8jaCrind4hTi07PpeqwN9i+Anww4pEjrFXQ1+sQ7vi1M6d5a0aN+X0+EMbHt2HA==";
$parser = new RksvParser($rksvString);

// Get receipt details
$receiptDateTime = $parser->getReceiptDateTime();
$totalIncludingTax = $parser->getTotalIncludingTax();
$companyVatId = $parser->getCompanyEuVatId();
```

### Parse from SPAR JSON Response

[](#parse-from-spar-json-response)

```
$jsonResponse = '{"code":"_R1-AT0_0487502_0404875001001202203314713_2022-03-31T17:16:44_0,00_1,89_0,00_0,00_0,00_oIY9ibHmpIc=_U:ATU33803701-3_NEen0fnOY9M=_H+KLP63QRYvxajhywX3JDskJeQdtPzMN6eUOVV7fAMxiRb9WyAWRMB06ynFB7hpeCGFM34adT14BcWpx0PGxnA=="}';
$parser = RksvParser::fromSparJson($jsonResponse);
```

Available Methods
-----------------

[](#available-methods)

- `getCashRegisterAlgorithmIdentifier()`: Get the algorithm identifier (e.g., "R1-AT0")
- `getCashRegisterID()`: Get the cash register ID
- `getReceiptNumber()`: Get the unique receipt number
- `getReceiptDateTime()`: Get the receipt date and time as DateTime object
- `getSumTaxSetNormal()`: Get the sum of normal tax rate
- `getSumTaxSetReduced1()`: Get the sum of first reduced tax rate
- `getSumTaxSetReduced2()`: Get the sum of second reduced tax rate
- `getSumTaxSetZero()`: Get the sum of zero tax rate
- `getSumTaxSetSpecial()`: Get the sum of special tax rate
- `getTurnoverCounterAES256ICM()`: Get the turnover counter
- `getCertificateSerialNumber()`: Get the certificate serial number
- `getCompanyEuVatId()`: Get the company EU VAT ID
- `getSignatureValuePreviousReceipt()`: Get the signature value of the previous receipt
- `getSignatureValue()`: Get the current receipt signature value
- `getTotalIncludingTax()`: Get the total amount including tax
- `getAmountTaxSetNormal()`: Get the tax amount for normal rate
- `getAmountTaxSetReduced1()`: Get the tax amount for first reduced rate
- `getAmountTaxSetReduced2()`: Get the tax amount for second reduced rate
- `getAmountTaxSetZero()`: Get the tax amount for zero rate

Requirements
------------

[](#requirements)

- PHP 8 or higher

License
-------

[](#license)

This package is licensed under the MIT License.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance52

Moderate activity, may be stable

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~212 days

Total

3

Last Release

332d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/53653f306f20e3e075f9d9243a1daa101ae2f0f7fbd82329793e8e5acba6afba?d=identicon)[bnussbau](/maintainers/bnussbau)

---

Top Contributors

[![bnussbau](https://avatars.githubusercontent.com/u/8931007?v=4)](https://github.com/bnussbau "bnussbau (6 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bnussbau-rksv-parser-php/health.svg)

```
[![Health](https://phpackages.com/badges/bnussbau-rksv-parser-php/health.svg)](https://phpackages.com/packages/bnussbau-rksv-parser-php)
```

###  Alternatives

[mtdowling/jmespath.php

Declaratively specify how to extract elements from a JSON document

2.0k472.8M135](/packages/mtdowling-jmespathphp)[opis/closure

A library that can be used to serialize closures (anonymous functions) and arbitrary data.

2.6k230.0M284](/packages/opis-closure)[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M229](/packages/masterminds-html5)[sabberworm/php-css-parser

Parser for CSS Files written in PHP

1.8k191.2M65](/packages/sabberworm-php-css-parser)[michelf/php-markdown

PHP Markdown

3.5k52.4M345](/packages/michelf-php-markdown)[jms/metadata

Class/method/property metadata management in PHP

1.8k152.8M88](/packages/jms-metadata)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
