PHP code example of lucenarenato / consulta_sinesp
1. Go to this page and download the library: Download lucenarenato/consulta_sinesp 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/ */
lucenarenato / consulta_sinesp example snippets
sh
$ php getVehiclesFromFile.php
sh
esp\Sinesp;
$veiculo = new Sinesp;
try {
$veiculo->buscar('GWW-6471');
if ($veiculo->existe()) {
print_r($veiculo->dados());
echo 'O ano do veiculo eh ' , $veiculo->anoModelo, PHP_EOL;
}
} catch (\Exception $e) {
echo $e->getMessage();
}