PHP code example of grizz-it / dbal-sql

1. Go to this page and download the library: Download grizz-it/dbal-sql 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/ */

    

grizz-it / dbal-sql example snippets


use GrizzIt\Dbal\Sql\Component\Filter\QueryFilterGroup;
use GrizzIt\Dbal\Sql\Component\Filter\ComparatorFilter;
use GrizzIt\Dbal\Sql\Common\ComparatorEnum;

// Create the filter group
$filterGroup = new QueryFilterGroup;

//Create the filter "column='value'"
$filter = new ComparatorFilter(
    'column',
    'value',
    ComparatorEnum::EQ()
);

//Add the filter
$filterGroup->addFilter($filter);