PHP code example of convenia / dominio-payroll-export

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

    

convenia / dominio-payroll-export example snippets


use Convenia\Dominio\PayrollExport\PayrollExport;

$dominio = new PayrollExport;

// Array com os dados do evento
$payroll = [
    [
        'fixed' => 10,
        'employeeCode' => 1111111111,
        'competence' => 201608,
        'rubric' => 4444,
        'type' => 55,
        'value' => 999999999,
        'company' => 0000000,
    ]
];

// Chamada para o evento
$payrollExport->events($payroll)
        ->generate();