PHP code example of clonixdev / sri-accesskey-generator

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

    

clonixdev / sri-accesskey-generator example snippets


use DazzaDev\SriAccesskeyGenerator\AccesskeyGenerator;

$accessKey = AccessKeyGenerator::generate([
    'date' => 'Y-m-d',
    'document_type' => '01',
    'ruc' => 'numero_del_ruc',
    'environment_code' => 1,
    'sequential' => '000000001',
    'establishment_code' => '001',
    'emission_point_code' => '001'
]);