koine/query-registry
Composer 安装命令:
composer require koine/query-registry
包简介
Registry to keep track of queries
README 文档
README
Simple query Registry for storing queries (and params) for logging/debbuging/late executing
Code information:
Package information:
Usage
$registry = new \Koine\QueryRegistry; $registry->register("SELECT foo FROM bar"); $registry->register("SELECT foo FROM bar WHERE baz=:baz", array( 'baz' => 'somevalue' )); $registry->getQueries()->last()->dump(); // or foreach ($registry->getQueries() as $query) { $db->execute($query->getSql(), $query->getParams()); }
Installing
Via Composer
Append the lib to your requirements key in your composer.json.
{ // composer.json // [..] require: { // append this line to your requirements "koine/query-registry": "dev-master" } }
Alternative install
- Learn composer. You should not be looking for an alternative install. It is worth the time. Trust me ;-)
- Follow this set of instructions
Issues/Features proposals
Here is the issue tracker.
Contributing
Only TDD code will be accepted. Please follow the PSR-2 code standard.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request
How to run the tests:
phpunit --configuration tests/phpunit.xml
To check the code standard run:
phpcs --standard=PSR2 lib phpcs --standard=PSR2 tests
Lincense
Authors
统计信息
- 总下载量: 17
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-08-12