PHPackages                             dapepe/microdb - 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. dapepe/microdb

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

dapepe/microdb
==============

A minimalistic DB abstraction layer for MySQL and PostgreSQL

1.0.8(7y ago)0109GPL-3.0-or-laterPHPPHP &gt;=5.4.0

Since Dec 4Pushed 7y ago1 watchersCompare

[ Source](https://github.com/dapepe/microdb)[ Packagist](https://packagist.org/packages/dapepe/microdb)[ RSS](/packages/dapepe-microdb/feed)WikiDiscussions master Synced 1mo ago

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

MicroDB - a minimalistic DB abstraction layer for MySQL and PostgreSQL
======================================================================

[](#microdb---a-minimalistic-db-abstraction-layer-for-mysql-and-postgresql)

Example
-------

[](#example)

Example:

```
include './lib/microdb/src/connector.php';
include './lib/microdb/src/postgresql.php';

$db = new MicroDB\PostgreSQL('127.0.0.1', 'myuser', 'mypassword', 'mydb');

foreach ($db->tables() as $tableId) {
	echo 'Scanning '.$tableId."\n";
	print_r($db->table($tableId)->fields());
}
```

License
-------

[](#license)

Copyright (C) 2008 - 2014 [Peter Haider](http://about.me/peterhaider)

This work is licensed under the GNU Lesser General Public License (LGPL) which should be included with this software. You may also get a copy of the GNU Lesser General Public License from .

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

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

Recently: every ~314 days

Total

9

Last Release

2592d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/73f59bbbf0bea604e68e44b4150ed339c2e789859992ea1ea415aea691e0bde7?d=identicon)[zeyos](/maintainers/zeyos)

---

Top Contributors

[![dapepe](https://avatars.githubusercontent.com/u/89526?v=4)](https://github.com/dapepe "dapepe (14 commits)")

### Embed Badge

![Health badge](/badges/dapepe-microdb/health.svg)

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

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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