PHPackages                             d-bmysql/d-bmysql - 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. d-bmysql/d-bmysql

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

d-bmysql/d-bmysql
=================

Mysqli Essential DB Class This class can access MySQL databases with mysql and mysqli. It comes with a

07PHP

Since Jul 14Pushed 12y ago1 watchersCompare

[ Source](https://github.com/mrosama/Mysqli-Essential-DB-Class)[ Packagist](https://packagist.org/packages/d-bmysql/d-bmysql)[ RSS](/packages/d-bmysql-d-bmysql/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

[Mysqli Essential DB Class](https://github.com/mrosama/Mysqli-Essential-DB-Class)
=================================================================================

[](#mysqli-essential-db-class)

Mysqli Essential DB Class This class can access MySQL databases with mysql and mysqli. It comes with a factory class that can create objects of driver classes to access a MySQL database using either the mysql or mysqli extensions.

The drivers can establish connections, execute queries, retrieve the query results into arrays, display query results in paginated listings, execute backup procedures and serve the backup file for download.

- Source:
- Email: [osama\_eg@outlook.com](osama_eg@outlook.com)

### Composer

[](#composer)

```
{
	"require": {
		"d-bmysql/d-bmysql": "dev-master"
	}
}

```

Quick start
-----------

[](#quick-start)

Clone the git repo - `git clone git://github.com/mrosama/Mysqli-Essential-DB-Class.git` - or [download it](https://github.com/mrosama/Mysqli-Essential-DB-Class/archive/master.zip)

Features
--------

[](#features)

This class implements a MySQL database access wrapper using MySQLi or mysql. It can:

- Establish connections to MySQL server hosts
- Execute SQL queries
- Determine the number of result rows or affected rows
- Retrieve query results into arrays
- pagination
- Backup database

Documentation
-------------

[](#documentation)

Take a look at the [documentation table of contents](doc/README.md). This documentation is bundled with the project, which makes it readily available for offline reading and provides a useful starting point for any documentation you want to write about your project.

###  Health Score

20

—

LowBetter than 12% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/ff75dd743554f0a2dbf6f1a9267de79b8eb2535336e2580877de26fd19b76064?d=identicon)[osama\_eg](/maintainers/osama_eg)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/d-bmysql-d-bmysql/health.svg)

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

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.8k117.8M121](/packages/jdorn-sql-formatter)[backup-manager/backup-manager

A framework agnostic database backup manager with user-definable procedures and support for S3, Dropbox, FTP, SFTP, and more with drivers for popular frameworks.

1.7k1.6M11](/packages/backup-manager-backup-manager)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M88](/packages/propel-propel1)[insolita/yii2-migration-generator

Set of gii tools for generating files for migration by schema of table , phpdoc or table data

108508.0k5](/packages/insolita-yii2-migration-generator)[xpdo/xpdo

A PDO-based Object/Relational Bridge Library

7088.4k4](/packages/xpdo-xpdo)[voku/session2db

A PHP library acting as a wrapper for PHP's default session handling functions which stores data in a MySQL database, providing both better performance and better security and protection against session fixation and session hijacking.

2920.0k](/packages/voku-session2db)

PHPackages © 2026

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