PHPackages                             rocketphp/mysqli - 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. rocketphp/mysqli

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

rocketphp/mysqli
================

Prepared statements - implements MySQLi client.

1.0.0(10y ago)028MITHTMLPHP &gt;=5.5

Since Sep 1Pushed 10y ago1 watchersCompare

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

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

mysqli
======

[](#mysqli)

[![Build Status](https://camo.githubusercontent.com/7df61b910e860d6962720ccb931fbe6f46d52d82b01a86f19c99acb81956f73e/68747470733a2f2f7472617669732d63692e6f72672f726f636b65747068702f6d7973716c692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/rocketphp/mysqli)[![Coverage Status](https://camo.githubusercontent.com/5c5516548f4b99836d2b1e1eb1f380da6e02396a12fe81e0f8853e17360ead83/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f726f636b65747068702f6d7973716c692f62616467652e7376673f6272616e63683d6d617374657226736572766963653d676974687562)](https://coveralls.io/github/rocketphp/mysqli?branch=master)[![Dependency Status](https://camo.githubusercontent.com/86bcdb2a8783d8185ffbf931d3a7d66f33862ac8ddc1213b70bd665e20013735/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3535653566326636386330663632303031633030303463652f62616467652e7376673f7374796c653d666c6174)](https://www.versioneye.com/user/projects/55e5f2f68c0f62001c0004ce)

[![Latest Stable Version](https://camo.githubusercontent.com/16988b898683c08d61134a57143894bde6b573b3d65762196f758f00489b8baf/68747470733a2f2f706f7365722e707567782e6f72672f726f636b65747068702f6d7973716c692f762f737461626c65)](https://packagist.org/packages/rocketphp/mysqli)[![License](https://camo.githubusercontent.com/7cc262d82d275fc947fb15e6aca99666fb7316cd3120e5bd39e9d1970d6b6a58/68747470733a2f2f706f7365722e707567782e6f72672f726f636b65747068702f6d7973716c692f6c6963656e7365)](https://packagist.org/packages/rocketphp/mysqli)

`RocketPHP\MySQLi` uses the MySQL Improved Extension to perform queries on a MySQL database via prepared statements.

***To perform a query on a database*** – start with an instance of MySQLi and use the select, insert, update, update many and delete query methods.

```
use RocketPHP\MySQLi\MySQLi;

$mysqli = new MySQLi([
    'hostname' => 'localhost',
    'username' => 'root',
    'password' => '',
    'database' => 'example_db',
    'port'     => null,
]);

$sql = "SELECT * FROM table_name
        WHERE column_name = ?";
$values = array('column_value');
$fmt = array('%s');
$result = $mysqli->select($sql,
                          $values,
                          $fmt);
```

- File issues at
- Documentation is at

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

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

Total

2

Last Release

3909d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/49f1849bfe77d7b1f690702822ed209ba24bbb4918a8326287d43df7c6c7751b?d=identicon)[rocketphp](/maintainers/rocketphp)

---

Tags

mysqlmysqlirocketphp

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rocketphp-mysqli/health.svg)

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

###  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)
