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

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

hkristjan/upn-generator
=======================

UPN form generator

v2.0.3(3y ago)018MITPHPPHP ^7.0|^7.4|^8.0

Since Jul 7Pushed 3y agoCompare

[ Source](https://github.com/hkristjan/UpnGenerator)[ Packagist](https://packagist.org/packages/hkristjan/upn-generator)[ Docs](https://github.com/hkristjan/UpnGenerator)[ RSS](/packages/hkristjan-upn-generator/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (1)Dependencies (1)Versions (6)Used By (0)

Upn Generator
=============

[](#upn-generator)

[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

Installation
============

[](#installation)

```
composer require media24si/upn-generator
```

Usage
=====

[](#usage)

First generate UPN:

```
$upn = (new \Media24si\UpnGenerator\UpnGenerator())
    ->setPayerName('Janez Novak')
    ->setPayerAddress('Dunajska ulica 1')
    ->setPayerPost('1000 Ljubljana')
    ->setReceiverName('RentaCar d.o.o.')
    ->setReceiverAddress('Pohorska ulica 22')
    ->setReceiverPost('2000 Maribor')
    ->setReceiverIban('SI56020170014356205')
    ->setAmount(300.24)
    ->setCode('RENT')
    ->setReference('SI121234567890120')
    ->setPurpose('Plačilo najemnine za marec')
    ->setDueDate(new DateTime('+1 month'));
```

Then you have 3 options:

Output to browser: `$upn->render();`

Get PNG as a string: `$upn->png();`

Get GD Image resource: `$upn->gdResource();`

Above example will output:

[![Upn Example](https://raw.githubusercontent.com/Media24si/UpnGenerator/master/example.png)](https://raw.githubusercontent.com/Media24si/UpnGenerator/master/example.png)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% 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 ~535 days

Total

5

Last Release

1457d ago

Major Versions

v1.0.0 → v2.0.02020-11-07

PHP version history (4 changes)v1.0.0PHP &gt;=5.6.0

v2.0.0PHP ^7.4

v2.0.2PHP ^7.4|^8.0

v2.0.3PHP ^7.0|^7.4|^8.0

### Community

Maintainers

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

---

Top Contributors

[![BostjanOb](https://avatars.githubusercontent.com/u/650818?v=4)](https://github.com/BostjanOb "BostjanOb (6 commits)")[![hkristjan](https://avatars.githubusercontent.com/u/5566071?v=4)](https://github.com/hkristjan "hkristjan (3 commits)")

---

Tags

upn

### Embed Badge

![Health badge](/badges/hkristjan-upn-generator/health.svg)

```
[![Health](https://phpackages.com/badges/hkristjan-upn-generator/health.svg)](https://phpackages.com/packages/hkristjan-upn-generator)
```

###  Alternatives

[werneckbh/laravel-qr-code

QR Code Generator for PHP wrapper for Laravel

90587.8k](/packages/werneckbh-laravel-qr-code)[media24si/upn-generator

UPN form generator

152.3k](/packages/media24si-upn-generator)[kaufmanndigital/gdpr-cookieconsent

A ready-to-run package, that integrates an advanced cookie consent banner into your Neos CMS site.

2540.7k](/packages/kaufmanndigital-gdpr-cookieconsent)[selective/transformer

A strictly typed array transformer with dot-access, fluent interface and filters.

3817.8k1](/packages/selective-transformer)

PHPackages © 2026

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