PHP code example of igor822 / query-parser

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

    

igor822 / query-parser example snippets



$queryParser = new QueryParser('config/queries.yml');
$path = 'queries.user.login';
$query = $queryParser->findQuery($path);
$query = $queryParser->replaceValues($query, array('id' => 1));

echo $query;