PHP code example of rozdol / payroll

1. Go to this page and download the library: Download rozdol/payroll 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/ */

    

rozdol / payroll example snippets


use Rozdol\Payroll\Payroll;
$this->payroll = new Payroll();
$data=[...];
$result = $this->utils->payslip($data);

use Rozdol\Payroll\Payroll;
$this->payroll = new Payroll();
$date_normalized = $this->payroll->F_date('01/01/20', 1); // 01.01.2020