1. Go to this page and download the library: Download ucscode/squery 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/ */
ucscode / squery example snippets
composer
use Ucscode\SQuery\SQuery;
use Ucscode\SQuery\Condition;
$squery = new SQuery();
$condition = new Condition();
$condition
->add("u.vendor", "ucscode")
->and("u.namespace", "SQuery")
->or("u.foundation", "Uss%", 'RLIKE');
$squery
->select("u.username")
->from("tablename", "u")
->where($condition)
->limit(2)
->groupBy('u.id', 'DESC')
;
echo $squery->build();