PHPackages                             walnut/lib\_dbquery\_pdo - 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. walnut/lib\_dbquery\_pdo

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

walnut/lib\_dbquery\_pdo
========================

0.0.5(2y ago)0761PHP

Since Sep 16Pushed 2y ago1 watchersCompare

[ Source](https://github.com/kapitancho/walnut-lib-dbquery-pdo)[ Packagist](https://packagist.org/packages/walnut/lib_dbquery_pdo)[ RSS](/packages/walnut-lib-dbquery-pdo/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (5)Dependencies (4)Versions (6)Used By (1)

PDO Adapter for the Query Executor
==================================

[](#pdo-adapter-for-the-query-executor)

A default implementation for the QueryExecutor interface
--------------------------------------------------------

[](#a-default-implementation-for-the-queryexecutor-interface)

### Example

[](#example)

```
$connector = new PdoConnector('sqlite::memory:', '', '');
$executor = new PdoQueryExecutor($connector);

$executor->execute("SELECT 1 AS val")->singleValue(); //1
$executor->execute("SELECT 1 AS val")->first(); //['val' => '1'],
$executor->execute("SELECT 1 AS val")->all(); //[['val' => '1']]
$executor->execute("SELECT 1")->collectAsList()->all(); //[['val' => '1']]
$executor->execute("SELECT 1 AS k, 1 AS val")->collectAsHash()->all(); //[1 => ['val' => '1']]
$executor->execute("SELECT 1 AS k, 1 AS val")->collectAsTreeData()->all(); //[1 => [['val' => '1']]],
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity45

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 ~214 days

Total

5

Last Release

894d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/792682?v=4)[Marian Kostadinov](/maintainers/kapitancho)[@kapitancho](https://github.com/kapitancho)

---

Top Contributors

[![kapitancho](https://avatars.githubusercontent.com/u/792682?v=4)](https://github.com/kapitancho "kapitancho (7 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/walnut-lib-dbquery-pdo/health.svg)

```
[![Health](https://phpackages.com/badges/walnut-lib-dbquery-pdo/health.svg)](https://phpackages.com/packages/walnut-lib-dbquery-pdo)
```

###  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)[pgvector/pgvector

pgvector support for PHP

198741.5k12](/packages/pgvector-pgvector)[jfelder/oracledb

Oracle DB driver for Laravel

11518.4k](/packages/jfelder-oracledb)

PHPackages © 2026

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