PHPackages                             ricci69/ultimatemysql - 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. ricci69/ultimatemysql

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

ricci69/ultimatemysql
=====================

MySQL database access wrapper compatible with PHP 8.0

4.6(2y ago)31426MITPHPPHP &gt;=7.0

Since Nov 4Pushed 2y ago1 watchersCompare

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

READMEChangelog (7)Dependencies (4)Versions (8)Used By (0)

ultimatemysql
=============

[](#ultimatemysql)

MySQL database access wrapper compatible with PHP 8

Based on the excellent work of Jeff Williams

### Why this repository

[](#why-this-repository)

Despite it is being used by fortune 500 companies \[[source](https://www.phpclasses.org/discuss/package/3698/thread/72/)\], the script isn't update since 16/08/2013 (almost 10 years!), so i thinked to create this repository with the aim of making it compatible with PHP 8, and being able to use it for another 10 years (i hope!).

How to get started
------------------

[](#how-to-get-started)

It's a very simple database access wrapper, well documented and safe against SQL injection hacks!

You can start with only 3 lines!

### PHP Library

[](#php-library)

```

```

### Composer package

[](#composer-package)

...OR if you want to include it as a composer package, just type:

```
composer require ricci69/ultimatemysql
```

and after use the following PHP code

```

```

### Debug mode

[](#debug-mode)

The script looks for a file called `.debugmysql` (within the root directory or within the composer's vendor / module folder) and, if found, enters debug mode.

When debug mode is active, it writes all SQL queries executed inside the `.debugmysql` file.

How it work and examples
------------------------

[](#how-it-work-and-examples)

Check the "examples" directory to learn how it works, or read the very good documentation on

Contributions
-------------

[](#contributions)

Feel free to contribute to this project adding more feature or fixing issues, but before submitting a pull request, make sure your code passes all unit tests (refer to the [/tests/coverage.md](/tests/coverage.md) document)

Support this / me
-----------------

[](#support-this--me)

If you liked this work, and you haven't wasted hours of work with this repository, you can think about supporting me with Ko-fi

[![ko-fi](https://camo.githubusercontent.com/201ef269611db7eb6b5d08e9f756ab8980df3014b64492770bdf13a6ed924641/68747470733a2f2f6b6f2d66692e636f6d2f696d672f676974687562627574746f6e5f736d2e737667)](https://ko-fi.com/P5P5FY846)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 98.1% 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 ~74 days

Recently: every ~110 days

Total

7

Last Release

840d ago

PHP version history (2 changes)4.1PHP &gt;=8.0.0

4.3PHP &gt;=7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/168f3008406dac4d4803ea0bc5f2794c2d2b8b0ebab1c760e1c98c2ca87df994?d=identicon)[ricci69](/maintainers/ricci69)

---

Top Contributors

[![ricci69](https://avatars.githubusercontent.com/u/4765330?v=4)](https://github.com/ricci69 "ricci69 (105 commits)")[![aponb](https://avatars.githubusercontent.com/u/5373515?v=4)](https://github.com/aponb "aponb (1 commits)")[![ortorob73](https://avatars.githubusercontent.com/u/91220696?v=4)](https://github.com/ortorob73 "ortorob73 (1 commits)")

---

Tags

databasemysqlphpphpdatabasemysql

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/ricci69-ultimatemysql/health.svg)

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

###  Alternatives

[clouddueling/mysqldump-php

PHP version of mysqldump cli that comes with MySQL

1.3k22.9k](/packages/clouddueling-mysqldump-php)[stefangabos/zebra_database

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

11812.0k](/packages/stefangabos-zebra-database)[popphp/pop-db

Pop Db Component for Pop PHP Framework

1814.6k11](/packages/popphp-pop-db)[riverside/php-orm

PHP ORM micro-library and query builder

111.2k](/packages/riverside-php-orm)

PHPackages © 2026

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