igor822/query-parser
Composer 安装命令:
composer require igor822/query-parser
包简介
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
README 文档
README
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
统计信息
- 总下载量: 39
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-02-19