PHPackages                             tonikresic/croatian-fiscalization - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. tonikresic/croatian-fiscalization

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

tonikresic/croatian-fiscalization
=================================

Croatian fiscalization written in PHP

v1.0.3(5y ago)2171MITPHPPHP ^7.4

Since Feb 9Pushed 5y ago1 watchersCompare

[ Source](https://github.com/tonikresic/croatian-fiscalization)[ Packagist](https://packagist.org/packages/tonikresic/croatian-fiscalization)[ Docs](https://gitlab.com/tonikresic/croatian-fiscalization)[ RSS](/packages/tonikresic-croatian-fiscalization/feed)WikiDiscussions main Synced 1mo ago

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

Croatian Fiscalization
======================

[](#croatian-fiscalization)

[![](https://camo.githubusercontent.com/51ee27cc8188be6733d93a33cf72ce4c67c624a2c64228e20209e43823f58697/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d312e302e332d626c75652e737667)](https://shields.io/)[![](https://camo.githubusercontent.com/10fe9dee46641c191d9551704c6739248966f27ea2fc60445ea7db920966bbdd/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d61696e7461696e65642d7965732d677265656e2e737667)](https://shields.io/)

PHP package for Croatian fiscalization. Provides basic service for fiscalizing the invoices with Croatian tax PDV (25%).

Install the required package
----------------------------

[](#install-the-required-package)

- `composer require tonikresic/croatian-fiscalization`

Example usage
-------------

[](#example-usage)

You need to have a demo certificate with its password, the company UID and the user UID in order for fiscalization to work.

```
$userUID = 'USER_UID';
$companyUID = 'COMPANY_UID';
$certificatePath = 'CERTIFICATE_PATH';
$certificatePassword = 'CERTIFICATE_PASSWORD';

$cf = new tonikresic\CroatianFiscalization\CroatianFiscalization();

$certificate = new tonikresic\CroatianFiscalization\Company\Certificate($certificatePath, $certificatePassword);
$company = new tonikresic\CroatianFiscalization\Company\Company($companyUID, $certificate, true, true);

$cf->configure($company);

$invoiceObject = (object) [
    'userUID' => $userUID,
    'fiscal_abbreviation' => 'G',
    'company' => $company,
    'gross' => 12.5,
    'net' => 10,
    'number' => 1,
    'business_place_label' => 1,
    'cash_register_label' => 1,
    'fiscal_data' => (object) [
        'zki' => NULL,
        'jir' => NULL
    ],
    'created_at' =>  date('Y-m-d H:i:s'),
    'fiscal_at' => NULL,
];

$response = $cf->fiscalize($invoiceObject);
```

Running the tests
-----------------

[](#running-the-tests)

- `php vendor/phpunit/phpunit/phpunit`

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 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 ~0 days

Total

4

Last Release

1918d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bb5c545b75f0efdc9b490c3b2afd6247cdaddef94779e1cf9adacc8bf2008ac2?d=identicon)[tkresic](/maintainers/tkresic)

---

Top Contributors

[![tkresic](https://avatars.githubusercontent.com/u/38069581?v=4)](https://github.com/tkresic "tkresic (8 commits)")

---

Tags

croatiafiscalizationfiscalizationcroatia

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tonikresic-croatian-fiscalization/health.svg)

```
[![Health](https://phpackages.com/badges/tonikresic-croatian-fiscalization/health.svg)](https://phpackages.com/packages/tonikresic-croatian-fiscalization)
```

PHPackages © 2026

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