PHPackages                             dbfit/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. dbfit/pdo

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

dbfit/pdo
=========

PDO database library for any project php

1.0.3(9y ago)126MITPHPPHP &gt;=7.0

Since Jan 7Pushed 9y ago1 watchersCompare

[ Source](https://github.com/abraaolevi/dbfit)[ Packagist](https://packagist.org/packages/dbfit/pdo)[ Docs](https://github.com/abraaolevi/dbfit)[ RSS](/packages/dbfit-pdo/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Dbfit
=====

[](#dbfit)

Facilitating day-to-day SQL queries with PDO.

ATTENTION: it's a experimental version. Don't use it in production.

### INSTALLATION

[](#installation)

```
composer require dbfit/pdo

```

### USAGE

[](#usage)

Simple queries:

```
$dbfit = new Dbfit($host, $user, $password, $database);
$result = $dbfit->query("SELECT * FROM users");
```

Transactions queries:

```
$dbfit->getConnection()->beginTransaction();
$dbfit->query($sql);
$dbfit->query($sql);
$dbfit->query($sql);
$dbfit->getConnection()->endTransaction();
```

You can cancel a transaction using `$dbfit->getConnection()->cancelTransaction();`

### Changelog

[](#changelog)

- v1.0.3
    - Adding flexybility with `prepareQuery` method
- v1.0.2
    - Some bugfixes at `ConnectionManager`
- v1.0.1
    - Fixing `composer.json`
- v1.0.0
    - Initial version

### Roadmap

[](#roadmap)

- `select` method that returns result data
- `insert` method that returns `insert_id`
- `update` method that returns number of affected rows
- `delete` method that returns number of affected rows
- Other auxiliar methods: `join`, `where`, `groupBy`, `having`, `orderBy` `limit`, `offset`
- Aggregates methods: `count`, `distinctCount`, `max`, `min`, `avg`, `sum`

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95.5% 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

Unknown

Total

1

Last Release

3414d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7e83f7fd8864dfcccd3b60ffd00ef6a2589a3d8fd671e1eec6e258d311f8301c?d=identicon)[abraaolevi](/maintainers/abraaolevi)

---

Top Contributors

[![abraaolevi](https://avatars.githubusercontent.com/u/502058?v=4)](https://github.com/abraaolevi "abraaolevi (21 commits)")[![eibreans](https://avatars.githubusercontent.com/u/2090329?v=4)](https://github.com/eibreans "eibreans (1 commits)")

---

Tags

databasepdo

### Embed Badge

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

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

###  Alternatives

[doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.

9.7k578.4M5.6k](/packages/doctrine-dbal)[ifsnop/mysqldump-php

PHP version of mysqldump cli that comes with MySQL

1.3k5.5M69](/packages/ifsnop-mysqldump-php)[nette/database

💾 Nette Database: layer with a familiar PDO-like API but much more powerful. Building queries, advanced joins, drivers for MySQL, PostgreSQL, SQLite, MS SQL Server and Oracle.

5656.7M234](/packages/nette-database)[dibi/dibi

Dibi is Database Abstraction Library for PHP

5013.8M120](/packages/dibi-dibi)[aura/sqlquery

Object-oriented query builders for MySQL, Postgres, SQLite, and SQLServer; can be used with any database connection library.

4572.9M34](/packages/aura-sqlquery)[envms/fluentpdo

FluentPDO is a quick and light PHP library for rapid query building. It features a smart join builder, which automatically creates table joins.

925511.7k13](/packages/envms-fluentpdo)

PHPackages © 2026

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