1. Go to this page and download the library: Download 1biot/fiquela 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/ */
1biot / fiquela example snippets
use FQL\Query\Provider;
$results = Provider::fql("
SELECT name, brand, ROUND(price, 2) AS price
FROM xml(feed.xml).SHOP.SHOPITEM
WHERE price > 100 AND in_stock = 'yes'
ORDER BY price DESC
LIMIT 20
")->execute()->fetchAll();
$results = $query->execute();
// all rows as array
$rows = $results->fetchAll();
// first row only
$row = $results->fetch();
// single scalar value
$value = $results->fetchSingle('price');
// map to DTO
$dtos = $results->fetchAll(ProductDTO::class);
// stream row by row (low memory)
foreach ($results->getIterator() as $row) {
// process $row
}
sql
-- type checking
WHERE price IS NUMBER AND tags IS ARRAY AND deleted_at IS NULL
-- pattern matching
WHERE name LIKE "%wireless%" AND sku REGEXP "^[A-Z]{2}-\d{4}$"
-- ranges and lists
WHERE price BETWEEN 100 AND 500
AND status IN ("active", "pending")
-- nested condition groups
WHERE price > 100
AND (stock > 0 OR featured = true)
AND (category = "electronics" OR discount > 0.2)
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.