Skip to content

igor822/query-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QueryParser

This project is a different approach to separate your queries search to run into database, when a simple (or comples) ORM is too complicated to run all your queries or simply can't do what you need, you can use QueryParser for put your queries into a YAML file and easily get from source

Example

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

echo $query;

To test and implement at other projects, you must to add , "zendframework/zend-config": "2.0.*" to require composer

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages