PHPackages                             imskully/php-mysqli-simplified - 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. imskully/php-mysqli-simplified

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

imskully/php-mysqli-simplified
==============================

MySQLi interface usage further simplified.

v0.0.3(4y ago)29GPL-3.0PHPPHP &gt;=5.3.0

Since Aug 6Pushed 4y ago1 watchersCompare

[ Source](https://github.com/ImSkully/php-mysqli-simplified)[ Packagist](https://packagist.org/packages/imskully/php-mysqli-simplified)[ Docs](https://github.com/ImSkully/php-mysqli-simplified)[ RSS](/packages/imskully-php-mysqli-simplified/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)DependenciesVersions (4)Used By (0)

PHP MySQLi Simplified
=====================

[](#php-mysqli-simplified)

[![Latest Stable Version](https://camo.githubusercontent.com/9bc559a1ef2570044ee5104dfbcdf972116ed99be072fb86ab254057513ce781/68747470733a2f2f706f7365722e707567782e6f72672f696d736b756c6c792f7068702d6d7973716c692d73696d706c69666965642f762f737461626c65)](https://packagist.org/packages/imskully/php-mysqli-simplified)[![License](https://camo.githubusercontent.com/dab7e46a7975758d1380e8d53e0bc3fd90f6d89b72d9027ae056b9b36a035df5/68747470733a2f2f706f7365722e707567782e6f72672f696d736b756c6c792f7068702d6d7973716c692d73696d706c69666965642f6c6963656e7365)](https://packagist.org/packages/imskully/php-mysqli-simplified)[![composer.lock](https://camo.githubusercontent.com/eca6c2fb68914f5991f0542bfa204db5e3d71e1f458d5ffb9177a41a8186d559/68747470733a2f2f706f7365722e707567782e6f72672f696d736b756c6c792f7068702d6d7973716c692d73696d706c69666965642f636f6d706f7365726c6f636b)](https://packagist.org/packages/imskully/php-mysqli-simplified)

A further improved and simplified usage of the MySQLi driver achieved by using overload functions that provide simplistic usage and a shorter syntax.

---

API Functions
=============

[](#api-functions)

`fetch($db, $query)`
--------------------

[](#fetchdb-query)

Executes the specified query and returns the first result.

```
@param   $db     String  The database name to use for this query.
@param   $query  String  The SQL query.
@return  bool|string[]   The mysqli response if fetch was successful, false otherwise.
```

`fetchAll($db, $query)`
-----------------------

[](#fetchalldb-query)

Executes the provided query and returns an array of all results.

```
@param   $db     String  The database name.
@param   $query  String  The SQL query.
@return  array|bool      An array containing the mysqli response if fetch was successful, false otherwise.
```

`execute($db, $query)`
----------------------

[](#executedb-query)

Executes the provided query.

```
@param   $db     String  The database name.
@param   $query  String  The SQL query.
@return  bool            Returns true if the query executed, false otherwise.
```

`escape($data, $db)`
--------------------

[](#escapedata-db)

Runs the `mysqli_escape_string()` to escape special characters from the string.

```
@param   $data   String  The variable or data to escape.
@param   string  $db     The database of which charset to use, if none provided then the default server is used.
@return  String          Returns the data escaped.
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

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

Total

3

Last Release

1727d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/afbf30222367995fe1d5180c35f4643a5966158700b8dae5e2546d5d341f10c1?d=identicon)[ImSkully](/maintainers/ImSkully)

---

Top Contributors

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

---

Tags

mysql-connectionmysqliphpphp71mysqliSimplifiedImSkully

### Embed Badge

![Health badge](/badges/imskully-php-mysqli-simplified/health.svg)

```
[![Health](https://phpackages.com/badges/imskully-php-mysqli-simplified/health.svg)](https://phpackages.com/packages/imskully-php-mysqli-simplified)
```

###  Alternatives

[aplus/database

Aplus Framework Database Library

3331.6M7](/packages/aplus-database)[sergeytsalkov/meekrodb

The Simple PHP/MySQL Library

341387.0k10](/packages/sergeytsalkov-meekrodb)[ezsql/ezsql

Advance database access library. Make interacting with a database ridiculously easy. An universal interchangeable CRUD system.

86946.7k](/packages/ezsql-ezsql)[jv2222/ezsql

Advance database access library. Make interacting with a database ridiculously easy. An universal interchangeable CRUD system.

87311.3k2](/packages/jv2222-ezsql)[stefangabos/zebra_session

A drop-in replacement for PHP's default session handler which stores session data in a MySQL database, providing better performance, better security and protection against session fixation and session hijacking

174112.1k2](/packages/stefangabos-zebra-session)[stefangabos/zebra_database

An advanced, compact and lightweight MySQL database wrapper library, built around PHP's MySQLi extension.

11812.0k](/packages/stefangabos-zebra-database)

PHPackages © 2026

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