1. Go to this page and download the library: Download bipbop/api 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/ */
$tableConsulta = $databasePlaca->getTable("CONSULTA");
printf("\n== Listando campos de CONSULTA ==\n\n");
foreach ($tableConsulta->getFields() as $field) {
printf("Available Field: %s\n\n", $field->name());
}
$dom = $webService->post("SELECT FROM 'PLACA'.'CONSULTA'", [
"placa" => "XXX9999"
]);
// Visualizando as tags do documento retornado
printf($dom->saveXML());
// Recuperando a marca do veículo
$xpath = new \DOMXpath($dom);
printf($xpath->evaluate("string(/BPQL/body/marca/.)"));
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.