PHP code example of ckr / fiql-parser
1. Go to this page and download the library: Download ckr/fiql-parser 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/ */
ckr / fiql-parser example snippets
// autoloading is psr-4 compliant, so we can use composer
l\Scanner();
$parser = new \Ckr\Fiql\Parser($scanner);
// parse expression to a syntax tree
$syntaxTree = $parser->parse('field==value,second=lt=val;