PHP code example of media24si / upn-generator

1. Go to this page and download the library: Download media24si/upn-generator library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

media24si / upn-generator example snippets


$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'));