PHPackages                             shusaura85/mythdb - 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. shusaura85/mythdb

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

shusaura85/mythdb
=================

Simple database abstraction layer for PHP

1.0.0(1y ago)05MITPHPPHP &gt;=8.1

Since Oct 3Pushed 1y ago1 watchersCompare

[ Source](https://github.com/shusaura85/mythdb)[ Packagist](https://packagist.org/packages/shusaura85/mythdb)[ Docs](https://github.com/shusaura85/mythdb)[ RSS](/packages/shusaura85-mythdb/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

MythDB
======

[](#mythdb)

By Shu Saura

[MythDB](https://github.com/shusaura85/mythdb) is a simple database abstraction layer for PHP providing a consistent interface for multiple database drivers.

Supported databases
-------------------

[](#supported-databases)

- mySQL and MariaDB
- PostreSQL
- SQLite3

Installation
------------

[](#installation)

- Using **Composer**

    ```
    composer require shusaura85/mythdb
    ```
- Manually

    ```
    require '/path/to/src/autoload.php'
    ```

Usage
-----

[](#usage)

```
require 'vendor/autoload.php'; // or '/path/to/src/autoload.php'

$db_driver = 'mysqli'; // available drivers: mysqli, pgsql, sqlite3
$db_persistent = false; // set to true to use a persistent connection
$db_utf8names = 'UTF8'; // if set, automatically calls query "SET NAMES ". not supported in sqlite
$db = new \MythDB\Database($db_driver, 'host', 'username', 'password', 'database', $db_persistent, $db_utf8names);
```

Requirements
------------

[](#requirements)

MythDB requires at least `PHP 8.1` to work. MythDB only depends on the internal PHP modules for database connection (mysqli / postresql / sqlite3).

Licence
-------

[](#licence)

MythDB is published under the MIT Licence, see `LICENSE` file for details.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

584d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0e7d0a1ba044084f63377918761d8eef4055af759f1d78cb1ad3ed62805d20ee?d=identicon)[shusaura85](/maintainers/shusaura85)

---

Top Contributors

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

---

Tags

databasedatabase-abstraction-layermysqlphpphp-librarypostgresqlsqlite3

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/shusaura85-mythdb/health.svg)

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

###  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.3k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M545](/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)
