PHP code example of josegus / control-code

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

    

josegus / control-code example snippets


ControlCode::make()
    ->authorizationNumber('29040011007')
    ->invoiceNumber('1503')
    ->customerDocumentNumber('4189179011')
    ->transactionDate('2007-07-02')
    ->transactionMount('2500')
    ->dosificationKey('9rCB7Sv4X29d)5k7N%3ab89p-3(5[A')
    ->generate();

ControlCode::make()
    ->authorizationNumber('29040011007')
    ->invoiceNumber('1503')
    ->customerDocumentNumber('4189179011')
    ->transactionDate('2007-07-02')
    ->transactionMount('2500')
    ->dosificationKey('9rCB7Sv4X29d)5k7N%3ab89p-3(5[A')
    ->generate();