PHPackages                             iassasin/fidb - 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. iassasin/fidb

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

iassasin/fidb
=============

Very lightweight and simple database interface for PHP

v0.3.0(1y ago)054[1 issues](https://github.com/iassasin/fidb/issues)MITPHPPHP &gt;=7.1

Since Jan 8Pushed 1y agoCompare

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

READMEChangelogDependencies (2)Versions (7)Used By (0)

Fine Interface to Database
==========================

[](#fine-interface-to-database)

Very simple and lightweight database connection wrapper making easer and safer to construct queries.

Install
=======

[](#install)

Use composer to install `fidb`:

```
composer require iassasin/fidb

```

Usage
=====

[](#usage)

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

use Iassasin\Fidb\Connection\ConnectionMysql;

$db = new ConnectionMysql($host, $database, $user, $password);

$db->query('INSERT INTO table(num, str, txt) VALUES(%d, %s, %s)',
	123, 'string', 'and "text"'); // automatic string escaping

// build queries of any complexity with variables
$bs = $db->select()
	->column('str')
	->table('table')
	->where('num > %d', 30);

foreach ($bs->execute()->fetchAll() as $row){
	echo $row['str'];
}
```

More examples see in [example](example/example.php)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance45

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity52

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

Recently: every ~646 days

Total

6

Last Release

457d ago

PHP version history (2 changes)v0.1PHP &gt;=5.6

v0.2.0PHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/55b921aba1206775e55bae7950fee7e6a62271203663e9b4b63ad48c707bbfe1?d=identicon)[iassasin](/maintainers/iassasin)

---

Top Contributors

[![iassasin](https://avatars.githubusercontent.com/u/20709774?v=4)](https://github.com/iassasin "iassasin (15 commits)")

---

Tags

databasedatabase-interfacedatabase-wrapperdbphpdatabasedbdatabase interface

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/iassasin-fidb/health.svg)

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

###  Alternatives

[robmorgan/phinx

Phinx makes it ridiculously easy to manage the database migrations for your PHP app.

4.5k46.2M403](/packages/robmorgan-phinx)[spatie/laravel-translation-loader

Store your language lines in the database, yaml or other sources

8362.9M51](/packages/spatie-laravel-translation-loader)[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)[lichtner/fluentpdo

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

921274.8k6](/packages/lichtner-fluentpdo)[fpdo/fluentpdo

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

921244.9k7](/packages/fpdo-fluentpdo)

PHPackages © 2026

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