2017 © Pedro Peláez
 

library query-registry

Registry to keep track of queries

image

koine/query-registry

Registry to keep track of queries

  • Monday, June 29, 2015
  • by mjacobus
  • Repository
  • 1 Watchers
  • 0 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Koine Query Registry

Simple query Registry for storing queries (and params) for logging/debbuging/late executing, (*1)

Code information:, (*2)

Build Status Coverage Status Code Climate Scrutinizer Code Quality, (*3)

Package information:, (*4)

Latest Stable Version Total Downloads Latest Unstable Version License Dependency Status, (*5)

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., (*6)

{
    // composer.json
    // [..]
    require: {
        // append this line to your requirements
        "koine/query-registry": "dev-master"
    }
}

Alternative install

Issues/Features proposals

Here is the issue tracker., (*7)

Contributing

Only TDD code will be accepted. Please follow the PSR-2 code standard., (*8)

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. 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

MIT, (*9)

Authors

The Versions

29/06 2015

dev-master

9999999-dev

Registry to keep track of queries

  Sources   Download

MIT

The Requires

 

The Development Requires

by Marcelo Jacobus

12/08 2014

0.9.1

0.9.1.0

Registry to keep track of queries

  Sources   Download

MIT

The Requires

 

The Development Requires

by Marcelo Jacobus

12/08 2014

0.9.0

0.9.0.0

Registry to keep track of queries

  Sources   Download

MIT

The Requires

 

The Development Requires

by Marcelo Jacobus