PHP code example of lyseontech / dou-collector
1. Go to this page and download the library: Download lyseontech/dou-collector 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/ */
lyseontech / dou-collector example snippets
$DOU = new DouCollector\DOU([
// Caso não queira colocar um limit, passe zero
'maxRequests' => 0
]);
// Data para a busca
$data = '30-12-2019';
// Irá buscar no título da publicação
$palavrasChave = ['aviso de licita'];
foreach ($DOU->collectData($data, $palavrasChave) as $licitacao) {
$licitacoes[] = $licitacao;
}