PHPackages                             firehed/simpledb - 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. firehed/simpledb

AbandonedArchivedLibrary

firehed/simpledb
================

0.0.2(8y ago)1310MITPHP

Since Feb 16Pushed 8y ago2 watchersCompare

[ Source](https://github.com/Firehed/SimpleDb)[ Packagist](https://packagist.org/packages/firehed/simpledb)[ RSS](/packages/firehed-simpledb/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (1)Dependencies (3)Versions (3)Used By (0)

SimpleDb
========

[](#simpledb)

A very simple PDO wrapper

Detailed documentation is coming Soon™.

API
---

[](#api)

### `Firehed\SimpleDb\SimpleDb`

[](#firehedsimpledbsimpledb)

#### `public function __construct(PDO $pdo)`

[](#public-function-__constructpdo-pdo)

Constructor

#### `public function select(string $query, array $params = []): Generator`

[](#public-function-selectstring-query-array-params---generator)

Pass in any SELECT query, with colon-prefixed `:placeholder`s. For each of those placeholders, ensure `$params` has a matching key, including the colon. The value can be any scalar type, *or an array of scalar types* which will automatically be expanded when matched with an `IN()` clause. Automatic `IN` support was the primary motivation behind this library.

#### `public function selectOne(string $query, array $params = []): array`

[](#public-function-selectonestring-query-array-params---array)

Same as above, but you get either the first row directly or a `NoResultError` will be thrown. Nice for primary/unique key `SELECT`s.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity54

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

Total

2

Last Release

3007d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/354842?v=4)[Eric Stern](/maintainers/Firehed)[@Firehed](https://github.com/Firehed)

---

Top Contributors

[![Firehed](https://avatars.githubusercontent.com/u/354842?v=4)](https://github.com/Firehed "Firehed (2 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/firehed-simpledb/health.svg)

```
[![Health](https://phpackages.com/badges/firehed-simpledb/health.svg)](https://phpackages.com/packages/firehed-simpledb)
```

PHPackages © 2026

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