PHPackages                             sebastian/mysqli-wrapper - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. sebastian/mysqli-wrapper

ActiveLibrary[Testing &amp; Quality](/categories/testing)

sebastian/mysqli-wrapper
========================

Wrapper around PHP's mysqli extension

2.0.0(12mo ago)13911BSD-3-ClausePHPPHP &gt;=8.4CI passing

Since Jul 14Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/sebastianbergmann/mysqli-wrapper)[ Packagist](https://packagist.org/packages/sebastian/mysqli-wrapper)[ Docs](https://github.com/sebastianbergmann/mysqli-wrapper)[ GitHub Sponsors](https://github.com/sebastianbergmann)[ Fund](https://liberapay.com/sebastianbergmann)[ RSS](/packages/sebastian-mysqli-wrapper/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (1)Versions (7)Used By (0)

[![No Maintenance Intended](https://camo.githubusercontent.com/a527ad34c8e95a96952ba81a6aa421bc0fd9c18d55bd2b2cb28ff644f428f665/68747470733a2f2f756e6d61696e7461696e65642e746563682f62616467652e737667)](https://unmaintained.tech/)[![Latest Stable Version](https://camo.githubusercontent.com/0d001bd392ad97f4651f6208d8bdb19d37cb58797c38a2c8f61f581188f3b313/68747470733a2f2f706f7365722e707567782e6f72672f73656261737469616e2f6d7973716c692d777261707065722f76)](https://packagist.org/packages/sebastian/mysqli-wrapper)[![CI Status](https://github.com/sebastianbergmann/mysqli-wrapper/workflows/CI/badge.svg)](https://github.com/sebastianbergmann/mysqli-wrapper/actions)[![codecov](https://camo.githubusercontent.com/9d37d673196907a85b8c13425f1a29523ce4b931c0009ea14fcad7129318b456/68747470733a2f2f636f6465636f762e696f2f67682f73656261737469616e626572676d616e6e2f6d7973716c692d777261707065722f6272616e63682f6d61696e2f67726170682f62616467652e737667)](https://codecov.io/gh/sebastianbergmann/mysqli-wrapper)

sebastian/mysqli-wrapper
========================

[](#sebastianmysqli-wrapper)

This repository contains code that was originally written while building an example application for my "[Event-Based Testing](https://phpunit.expert/presentations/event-based-testing.html?ref=github)" and "[Testable Database Interaction](https://phpunit.expert/presentations/testable-database-interaction.html?ref=github)" presentations.

The code has been extracted from this example application into a reusable component. Just because this component can be installed using Composer does not mean that it is anything other than example code. It is not production-ready. It is intended for study and learning purposes only.

The only reason this code was extracted into a reusable component is to make reusing it in other example applications easier for me.

Please note that this is a [low maintenance project](https://github.com/sebastianbergmann/mysqli-wrapper/blob/main/.github/CONTRIBUTING.md#low-maintenance-project).

###  Health Score

42

—

FairBetter than 89% of packages

Maintenance68

Regular maintenance activity

Popularity18

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity61

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

Recently: every ~75 days

Total

6

Last Release

360d ago

Major Versions

1.0.4 → 2.0.02025-05-14

PHP version history (2 changes)1.0.0PHP &gt;=8.3

2.0.0PHP &gt;=8.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1089?v=4)[Sebastian Probst Eide](/maintainers/sebastian)[@sebastian](https://github.com/sebastian)

---

Top Contributors

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

---

Tags

mysqlmariadbmysqli

### Embed Badge

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

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

###  Alternatives

[doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.

9.7k578.4M5.6k](/packages/doctrine-dbal)[aplus/database

Aplus Framework Database Library

3331.6M7](/packages/aplus-database)[scienta/doctrine-json-functions

A set of extensions to Doctrine that add support for json query functions.

58523.9M35](/packages/scienta-doctrine-json-functions)[chriskite/phactory

A Database Factory for PHP Unit Tests

140216.9k8](/packages/chriskite-phactory)[guanguans/laravel-soar

SQL optimizer and rewriter for laravel. - laravel 的 SQL 优化器和重写器。

2227.8k](/packages/guanguans-laravel-soar)[vectorface/mysqlite

Select MySQL compatibility functions for PDO's SQLite driver

3639.5k1](/packages/vectorface-mysqlite)

PHPackages © 2026

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