1. Go to this page and download the library: Download devnix/belfiore-code 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/ */
devnix / belfiore-code example snippets
use Devnix\BelfioreCode\Collection\ComuneCollection;
use Doctrine\Common\Collections\Criteria;
use Doctrine\Common\Collections\Expr\Comparison;
$comunes = new ComuneCollection();
$criteria = new Criteria();
$criteria
->where(new Comparison('registry_code', Comparison::IS, 'A001'))
;
var_dump($comunes->matching($criteria)));
use Devnix\BelfioreCode\Collection\ComuneCollection;
use Doctrine\Common\Collections\Criteria;
use Doctrine\Common\Collections\Expr\Comparison;
$comunes = new ComuneCollection();
$criteria = new Criteria();
$criteria
->where(new Comparison('registry_code', Comparison::IS, 'A001'))
->andWhere(new Comparison('status', Comparison::IS, 'active'))
;
var_dump($comunes->matching($criteria)));
use Devnix\BelfioreCode\Collection\ComuneCollection;
use Doctrine\Common\Collections\Criteria;
use Doctrine\Common\Collections\Expr\Comparison;
$comunes = new ComuneCollection();
$criteria = new Criteria();
$criteria->orderBy(['last_update' => Criteria::ASC]);
var_dump($comunes->matching($criteria)));
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.