PHPackages                             dz3n/nra-audit-generator - 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. dz3n/nra-audit-generator

ActiveLibrary

dz3n/nra-audit-generator
========================

NRA Orders Audit XML File Generator

2.0.1(3y ago)040↓100%MITPHPPHP ^8.1

Since Aug 15Pushed 3y agoCompare

[ Source](https://github.com/dz3n/nra-audit-generator)[ Packagist](https://packagist.org/packages/dz3n/nra-audit-generator)[ RSS](/packages/dz3n-nra-audit-generator/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (1)Versions (14)Used By (0)

NRA Orders Audit XML File Generator
===================================

[](#nra-orders-audit-xml-file-generator)

Install
-------

[](#install)

`composer require dz3n/nra-audit-generator`

Usage
-----

[](#usage)

```
$shop = new \Audit\Shop($eik, $shopUniqueNumber, $domain, $shopCreatedAt, $isMarketplace, $yearOfOdit, $monthOfOdit);
$order = new \Audit\Order($orderUniqueNumber, $orderDate, $documentNumber, $documentDate, $totalDiscount, $paymentType, $items, $virtualPosNumber, $transactionNumber, $paymentProcessrIdentifier);
$item = new \Audit\Item($name, $quantity, $price, $vatRate = 20);
$order->addItem($item);
$shop->addOrder($order);
$returnedOrder = new \Audit\ReturnedOrder($orderNumber, $orderAmount, $orderDate, $returnMethod);
$shop->addReturnedOrder($returnedOrder);

$xml = (string) \Audit\XmlConverter::convert($shop);
```

Payment types
-------------

[](#payment-types)

```
\Audit\PaymentTypes\WithoutPostPayment::class; //1
\Audit\PaymentTypes\VirtualPOSTerminal::class; //2
\Audit\PaymentTypes\WithPostPayment::class; //3
\Audit\PaymentTypes\PaymentService::class; //4
\Audit\PaymentTypes\Other::class; //5
\Audit\PaymentTypes\ReflectedWithReceipt::class; //6
```

Return methods
--------------

[](#return-methods)

```
\Audit\ReturnMethods\IBAN::class; //1
\Audit\ReturnMethods\Card::class; //2
\Audit\ReturnMethods\Cash::class; //3
\Audit\ReturnMethods\Other::class; //4
```

### Plugins for popular platforms using this library

[](#plugins-for-popular-platforms-using-this-library)

If you created a plugin with this library - ping me or create a pull request to be added here.

### Other related plugins

[](#other-related-plugins)

- [WooCommerce Наредба Н-18 облекчен режим плъгин (PAID)](https://mreja.net/produkt/woocommerce-%D0%BD%D0%B0%D1%80%D0%B5%D0%B4%D0%B1%D0%B0-%D0%BD-18-%D0%BE%D0%B1%D0%BB%D0%B5%D0%BA%D1%87%D0%B5%D0%BD-%D1%80%D0%B5%D0%B6%D0%B8%D0%BC-%D0%BF%D0%BB%D1%8A%D0%B3%D0%B8%D0%BD/)
- [Bulgarisation for WooCommerce (FREE)](https://bg.wordpress.org/plugins/bulgarisation-for-woocommerce/)
- [Модул за Наредба Н-18 за WooCommerce](https://webtitan.bg/produkt/modul-za-naredba-n18-woocommerce/)
- [OpenCart 3 модул](https://github.com/escapeboy/nra-opencart)

Hey! You can send me money on Revolut by following this link:

###  Health Score

30

—

LowBetter than 67% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 95.5% 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 ~94 days

Recently: every ~201 days

Total

11

Last Release

1099d ago

Major Versions

1.1.1 → 2.02023-03-20

PHP version history (2 changes)1.0.0PHP ^7.4

2.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/21b9e21870576fe9305fea8cb4688575e83ca9b6ec4562d6a9594dc97e3cf026?d=identicon)[dz3n](/maintainers/dz3n)

---

Top Contributors

[![escapeboy](https://avatars.githubusercontent.com/u/115266?v=4)](https://github.com/escapeboy "escapeboy (42 commits)")[![dz3n](https://avatars.githubusercontent.com/u/5677542?v=4)](https://github.com/dz3n "dz3n (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dz3n-nra-audit-generator/health.svg)

```
[![Health](https://phpackages.com/badges/dz3n-nra-audit-generator/health.svg)](https://phpackages.com/packages/dz3n-nra-audit-generator)
```

PHPackages © 2026

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