PHP code example of idfocus / php-tinyqbuilder

1. Go to this page and download the library: Download idfocus/php-tinyqbuilder 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/ */

    

idfocus / php-tinyqbuilder example snippets


$builder = new \IDFocus\TinyQ\Builder();
$query = $builder->like('name', $builder->escapeLike('some_text') . '-')->build();
// name.ksome._text-: literal "some_text", followed by a wildcard.