PHPackages                             kimoslim/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. [Framework](/categories/framework)
4. /
5. kimoslim/pdo

ActiveLibrary[Framework](/categories/framework)

kimoslim/pdo
============

PHP 7.2 Compatible Fork of PDO database library for Slim Framework

1.10.2(8y ago)016.4k↓39.6%MITPHPPHP &gt;=5.3.0

Since Jul 25Pushed 8y ago1 watchersCompare

[ Source](https://github.com/kimosabi77/Slim-PDO)[ Packagist](https://packagist.org/packages/kimoslim/pdo)[ Docs](https://github.com/FaaPz/Slim-PDO)[ RSS](/packages/kimoslim-pdo/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (21)Used By (0)

Slim-PDO
========

[](#slim-pdo)

PDO database library for Slim Framework

This is a fork of Fabien's project with support for PHP 7.2.

Please refer to the main package at  for pull requests, support and documentation.

### Installation

[](#installation)

Use [Composer](https://getcomposer.org/)

```
"require": {
    "kimoslim/pdo": "~1.10"
}
```

### Usage

[](#usage)

Examples selecting, inserting, updating and deleting data from or into `users` table.

```
require_once 'vendor/autoload.php';

$dsn = 'mysql:host=your_db_host;dbname=your_db_name;charset=utf8';
$usr = 'your_db_username';
$pwd = 'your_db_password';

$pdo = new \Slim\PDO\Database($dsn, $usr, $pwd);

// SELECT * FROM users WHERE id = ?
$selectStatement = $pdo->select()
                       ->from('users')
                       ->where('id', '=', 1234);

$stmt = $selectStatement->execute();
$data = $stmt->fetch();

// INSERT INTO users ( id , usr , pwd ) VALUES ( ? , ? , ? )
$insertStatement = $pdo->insert(array('id', 'usr', 'pwd'))
                       ->into('users')
                       ->values(array(1234, 'your_username', 'your_password'));

$insertId = $insertStatement->execute(false);

// UPDATE users SET pwd = ? WHERE id = ?
$updateStatement = $pdo->update(array('pwd' => 'your_new_password'))
                       ->table('users')
                       ->where('id', '=', 1234);

$affectedRows = $updateStatement->execute();

// DELETE FROM users WHERE id = ?
$deleteStatement = $pdo->delete()
                       ->from('users')
                       ->where('id', '=', 1234);

$affectedRows = $deleteStatement->execute();
```

> The `sqlsrv` extension will fail to connect when using error mode `PDO::ERRMODE_EXCEPTION` (default). To connect, you will need to explicitly pass `array(PDO::ATTR_ERRMODE => PDO::ERRMODE_WARNING)` (or `PDO::ERRMODE_SILENT`) into the constructor, or override the `getDefaultOptions()` method when using `sqlsrv`.

### Documentation

[](#documentation)

See [DOCUMENTATION](https://github.com/FaaPz/Slim-PDO/blob/master/docs/README.md)

### Changelog

[](#changelog)

See [CHANGELOG](https://github.com/FaaPz/Slim-PDO/blob/master/CHANGELOG.md)

### License

[](#license)

See [LICENSE](https://github.com/FaaPz/Slim-PDO/blob/master/LICENSE)

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 71.7% 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 ~56 days

Recently: every ~198 days

Total

19

Last Release

2938d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/56e182d8c2ced9e5831be8b2907af8360c572ce57b04f652a8eaafff7aeb2ec6?d=identicon)[kimosabi77](/maintainers/kimosabi77)

---

Top Contributors

[![FaaPz](https://avatars.githubusercontent.com/u/1536742?v=4)](https://github.com/FaaPz "FaaPz (38 commits)")[![kimosabi77](https://avatars.githubusercontent.com/u/863269?v=4)](https://github.com/kimosabi77 "kimosabi77 (4 commits)")[![scheras](https://avatars.githubusercontent.com/u/7363137?v=4)](https://github.com/scheras "scheras (3 commits)")[![delef](https://avatars.githubusercontent.com/u/2103263?v=4)](https://github.com/delef "delef (2 commits)")[![terah](https://avatars.githubusercontent.com/u/2120322?v=4)](https://github.com/terah "terah (1 commits)")[![bmutinda](https://avatars.githubusercontent.com/u/1729141?v=4)](https://github.com/bmutinda "bmutinda (1 commits)")[![WFrancois](https://avatars.githubusercontent.com/u/5872952?v=4)](https://github.com/WFrancois "WFrancois (1 commits)")[![ismnoiet](https://avatars.githubusercontent.com/u/5025240?v=4)](https://github.com/ismnoiet "ismnoiet (1 commits)")[![kwhat](https://avatars.githubusercontent.com/u/676164?v=4)](https://github.com/kwhat "kwhat (1 commits)")[![procket-org](https://avatars.githubusercontent.com/u/5643421?v=4)](https://github.com/procket-org "procket-org (1 commits)")

---

Tags

frameworkdatabaseslimpdo

### Embed Badge

![Health badge](/badges/kimoslim-pdo/health.svg)

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

###  Alternatives

[rubellum/slim-blade-view

Slim Framework 3 view helper built on the Blade component

1822.4k2](/packages/rubellum-slim-blade-view)

PHPackages © 2026

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