PHPackages                             koine/query-registry - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. koine/query-registry

ActiveLibrary[Database &amp; ORM](/categories/database)

koine/query-registry
====================

Registry to keep track of queries

0.9.1(11y ago)017MITPHP

Since Aug 12Pushed 11y agoCompare

[ Source](https://github.com/koinephp/QueryRegistry)[ Packagist](https://packagist.org/packages/koine/query-registry)[ RSS](/packages/koine-query-registry/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (2)Used By (0)

Koine Query Registry
--------------------

[](#koine-query-registry)

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

Code information:

[![Build Status](https://camo.githubusercontent.com/f599fbe70f730de40ae3f7906fb2ba037094a7b84740578c3d11028d047d7c12/68747470733a2f2f7472617669732d63692e6f72672f6b6f696e657068702f517565727952656769737472792e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/koinephp/QueryRegistry)[![Coverage Status](https://camo.githubusercontent.com/09711ee4bbad76cbfed4d6dfca5bf00567d268504923f01d493dd78dce4ba1bd/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6b6f696e657068702f517565727952656769737472792f62616467652e706e67)](https://coveralls.io/r/koinephp/QueryRegistry)[![Code Climate](https://camo.githubusercontent.com/424cede6418ecd538fb682d1f688f199b1f9f292fabf896bac9168e573e80903/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6b6f696e657068702f517565727952656769737472792e706e67)](https://codeclimate.com/github/koinephp/QueryRegistry)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/6d68b9da9c43e3ef65390ca11260f66a24c24be8cdf472b71f37208185e72c88/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6b6f696e657068702f517565727952656769737472792f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/koinephp/QueryRegistry/?branch=master)

Package information:

[![Latest Stable Version](https://camo.githubusercontent.com/ac09205883ae0b69f480b65ee055f2b9c1beac595843feff828eb9b26e3ceb1c/68747470733a2f2f706f7365722e707567782e6f72672f6b6f696e652f71756572792d72656769737472792f762f737461626c652e737667)](https://packagist.org/packages/koine/query-registry)[![Total Downloads](https://camo.githubusercontent.com/7bcc3016b43e806d110d004816254c6c6b3ab61461c02a1d343764d26c60ac78/68747470733a2f2f706f7365722e707567782e6f72672f6b6f696e652f71756572792d72656769737472792f646f776e6c6f6164732e737667)](https://packagist.org/packages/koine/query-registry)[![Latest Unstable Version](https://camo.githubusercontent.com/0a98ad58758acb719aed978c50b28476d46ffd704896fea4866b5c3474de2cfd/68747470733a2f2f706f7365722e707567782e6f72672f6b6f696e652f71756572792d72656769737472792f762f756e737461626c652e737667)](https://packagist.org/packages/koine/query-registry)[![License](https://camo.githubusercontent.com/da2f702233799d3bd1ef3425c3580f85839893b1292176685e7790b0e14a87df/68747470733a2f2f706f7365722e707567782e6f72672f6b6f696e652f71756572792d72656769737472792f6c6963656e73652e737667)](https://packagist.org/packages/koine/query-registry)[![Dependency Status](https://camo.githubusercontent.com/0fb048ef873148063f0894ff58545a4a7075af6697095a11e2d6335c3bd43e06/68747470733a2f2f67656d6e617369756d2e636f6d2f6b6f696e657068702f517565727952656769737472792e706e67)](https://gemnasium.com/koinephp/QueryRegistry)

### Usage

[](#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

[](#installing)

#### Via Composer

[](#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

[](#alternative-install)

- Learn [composer](https://getcomposer.org). You should not be looking for an alternative install. It is worth the time. Trust me ;-)
- Follow [this set of instructions](#installing-via-composer)

### Issues/Features proposals

[](#issuesfeatures-proposals)

[Here](https://github.com/koinephp/QueryRegistry/issues) is the issue tracker.

### Contributing

[](#contributing)

Only TDD code will be accepted. Please follow the [PSR-2 code standard](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md).

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:

[](#how-to-run-the-tests)

```
phpunit --configuration tests/phpunit.xml
```

### To check the code standard run:

[](#to-check-the-code-standard-run)

```
phpcs --standard=PSR2 lib
phpcs --standard=PSR2 tests
```

### Lincense

[](#lincense)

[MIT](MIT-LICENSE)

### Authors

[](#authors)

- [Marcelo Jacobus](https://github.com/mjacobus)

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

4342d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/226834?v=4)[Marcelo Jacobus](/maintainers/mjacobus)[@mjacobus](https://github.com/mjacobus)

---

Top Contributors

[![mjacobus](https://avatars.githubusercontent.com/u/226834?v=4)](https://github.com/mjacobus "mjacobus (11 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/koine-query-registry/health.svg)

```
[![Health](https://phpackages.com/badges/koine-query-registry/health.svg)](https://phpackages.com/packages/koine-query-registry)
```

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k117.2M118](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[jfelder/oracledb

Oracle DB driver for Laravel

11518.4k](/packages/jfelder-oracledb)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
