PHP code example of convenia / alelo-order

1. Go to this page and download the library: Download convenia/alelo-order 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 / alelo-order example snippets




use Convenia\AleloOrder\AleloOrder;
...

$aleloOrder = new AleloOrder(
    [
        'orderDate' => '09052016',
        'name' => 'Razão Social',
        'cnpj' => '11.123.123/0001-12',
        'contractNumber' => '00011128111',
        'benefitType' => '2', // 1 = AVV 2= RVV 3= CVV 4= NVV 5= FVV
        'orderType' => 1,
        'accrualMonth' => '052016',
    ]
);

$aleloOrder->addEmployee(
    [
        'name' => 'Funcionário Teste',
        'monthValue' => '550',
        'employeeRegistry' => '1',
        'birthDate' => '08011985',
        'cpf' => '111.111.111-11',
        'identityType' => '1',
        'identityNumber' => '111111111',
        'identityIssuer' => 'SSP',
        'identityIssuerState' => 'SP',
        'gender' => 'm',
        'maritalStatus' => '1',
        'motherName' => 'Nome mãe',
        'admissionDate' => '08052016',
    ]
);

$file = $aleloOrder->generate();