PHP code example of bdti / sim-frete

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

    

bdti / sim-frete example snippets




p = "YOUR_EMP";
$wsUsr = "YOUR_USER";
$wsPwd = "YOUR_PASS";

$api = new \BDTI\SimFrete\Api($wsEmp, $wsUsr, $wsPwd);

$ocorrencias = $api->track('123');

var_dump($ocorrencias);