PHPackages                             aka-dmc/clean-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. aka-dmc/clean-pdo

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

aka-dmc/clean-pdo
=================

Simple PHP PDO Wrapper

1.64(6y ago)017PHPPHP ^7.2

Since Sep 2Pushed 6y ago1 watchersCompare

[ Source](https://github.com/akadmc/cleanPDO)[ Packagist](https://packagist.org/packages/aka-dmc/clean-pdo)[ RSS](/packages/aka-dmc-clean-pdo/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (10)DependenciesVersions (12)Used By (0)

cleanPDO
========

[](#cleanpdo)

A simple DB class written to utilize MYSQL &amp; PDO in PHP. The aim of this project is to keep the DB interaction modern and concise yet still retain all the most commonly used features. Any push requests are welcome.

### Sample Usage

[](#sample-usage)

#### Instantiation

[](#instantiation)

```
require('db.pdo.mysql.php');
$db = new db('db_sample_settings.json');
```

#### SELECT (Returns record set \[array\]) \[SHOW statements also return a record set\]

[](#select-returns-record-set-array-show-statements-also-return-a-record-set)

```
$query = 'select name from users where userID = :id';
$db->addParam(':id',1,PDO::PARAM_INT);
$result = $db->processQuery($query);
```

#### INSERT (Returns row(s) affected \[int\]) \[DELETE, UPDATE statements also return row(s) affected\]

[](#insert-returns-rows-affected-int-delete-update-statements-also-return-rows-affected)

```
$query = 'insert into users (name) values (:username)';
$db->addParam(':username',"David",PDO::PARAM_STR);
$result = $db->processQuery($query);
```

#### Notes

[](#notes)

- In case of query error or PDO / code exception the "processQuery" method will return the error text (string).
- All query errors and PDO / code exceptions are logged to the default PHP errors log configured on machine.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

11

Last Release

2236d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f8fa595910ed68880b72760130747c75709f7a929da35148d81d75feee0860f9?d=identicon)[david@capalbo.us](/maintainers/david@capalbo.us)

---

Top Contributors

[![akadc](https://avatars.githubusercontent.com/u/13057479?v=4)](https://github.com/akadc "akadc (23 commits)")

### Embed Badge

![Health badge](/badges/aka-dmc-clean-pdo/health.svg)

```
[![Health](https://phpackages.com/badges/aka-dmc-clean-pdo/health.svg)](https://phpackages.com/packages/aka-dmc-clean-pdo)
```

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k116.5M113](/packages/jdorn-sql-formatter)[propel/propel1

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

8441.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)
