PHP code example of fabianoroo / trafegus

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

    

fabianoroo / trafegus example snippets

 php

'HOST_API_TRAFEGUS';
$auth = 'user:password';

$terminal = new \Trafegus44\Terminal($host, $auth);
$terminal->setIdentificador('A465DF897ADF6A5')
->setTecnologia('4574');

$retorno = $terminal->create();

print_r(json_encode($retorno->response));