PHP code example of boostech / cte
1. Go to this page and download the library: Download boostech/cte 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/ */
boostech / cte example snippets
php artisan optimize
php artisan migrate
composer dump-autoload
public function teste()
{
$diretorio = "<diretorio_dos_xmls>";
foreach (array_diff(scandir($diretorio), array('..', '.')) as $item) {
$retorno = Hctex::importarXML(1, 2, sprintf("%s/%s", $diretorio, $item));
if (!$retorno['status']) {
dd($retorno['excessao']);
}
}
echo "XML's importados!";
}