PHPackages                             dkplus/mysql-migration-layer - 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. dkplus/mysql-migration-layer

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

dkplus/mysql-migration-layer
============================

Layer for migration from mysql to mysqli.

0.1(12y ago)0213MITPHPPHP &gt;=5.3

Since Nov 26Pushed 10y ago1 watchersCompare

[ Source](https://github.com/UFOMelkor/mysql-migration-layer)[ Packagist](https://packagist.org/packages/dkplus/mysql-migration-layer)[ RSS](/packages/dkplus-mysql-migration-layer/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (4)Versions (3)Used By (0)

MySQL migration layer
=====================

[](#mysql-migration-layer)

[![Build Status](https://camo.githubusercontent.com/a9b1d0d9544f78192733be6783a8a0291e21653342fef89a22d3c9aaf9e786b4/68747470733a2f2f7472617669732d63692e6f72672f55464f4d656c6b6f722f6d7973716c2d6d6967726174696f6e2d6c617965722e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/UFOMelkor/mysql-migration-layer)[![Scrutinizer Quality Score](https://camo.githubusercontent.com/ef539f5695c366cdc840150bad79376195c258bff6b1f69338235397763f80fc/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f55464f4d656c6b6f722f6d7973716c2d6d6967726174696f6e2d6c617965722f6261646765732f7175616c6974792d73636f72652e706e673f733d61666432623834323962613933353232653666656262363630313030363938626635393339306431)](https://scrutinizer-ci.com/g/UFOMelkor/mysql-migration-layer/)[![Coverage Status](https://camo.githubusercontent.com/3fa320690cbb0cf42d0e4836a00f19108386de6f43673d8d90574ea7163f969e/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f55464f4d656c6b6f722f6d7973716c2d6d6967726174696f6e2d6c617965722f62616467652e706e67)](https://coveralls.io/r/UFOMelkor/mysql-migration-layer)[![Total Downloads](https://camo.githubusercontent.com/be4222897291eb2171941ad86766bf94707330b111db1a47dae57e32d47ceede/68747470733a2f2f706f7365722e707567782e6f72672f646b706c75732f6d7973716c2d6d6967726174696f6e2d6c617965722f646f776e6c6f6164732e706e67)](https://packagist.org/packages/dkplus/mysql-migration-layer)[![Latest Stable Version](https://camo.githubusercontent.com/75ff1f747fa9b03600b7b3943e2da928c2402082b19c6addf651c6a514940665/68747470733a2f2f706f7365722e707567782e6f72672f646b706c75732f6d7973716c2d6d6967726174696f6e2d6c617965722f762f737461626c652e706e67)](https://packagist.org/packages/dkplus/mysql-migration-layer)[![Latest Unstable Version](https://camo.githubusercontent.com/603681da56997cd6ff7e6d35ff0583870acc39622173a2890fd736c1e72769d4/68747470733a2f2f706f7365722e707567782e6f72672f646b706c75732f6d7973716c2d6d6967726174696f6e2d6c617965722f762f756e737461626c652e706e67)](https://packagist.org/packages/dkplus/mysql-migration-layer)

Layer for migration from mysql to mysqli.

Installation
------------

[](#installation)

### composer

[](#composer)

For composer documentation, please refer to [getcomposer.org](http://getcomposer.org/).

```
php composer.phar require dkplus/mysql-migration-layer
```

### Post-install

[](#post-install)

After installing replace all `mysql_*()` calls with `\MySQL\Proxy::*()`.

You can do this step automatically. Therefore you must also install [nikic/php-parser](https://github.com/nikic/PHP-Parser):

```
php composer.phar require nikic/php-parser:1.*
```

Then you can run the converter by calling:

```
php vendor/bin/convert-mysql.php [-w]
```

Run the script with the path of the PHP file you wish to convert as argument. This will print the converted source code to STDOUT.

You can add the `-w` switch if you want to override the original file with the converted code.

In case of any error, an error message is written to STDERR and the script exits with a return code of 1.

Use find to convert a whole directory recursively:

```
find  -name "*.php" -exec php "vendor/bin/convert-mysql.php" -w "{}" \;
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

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

Unknown

Total

1

Last Release

4553d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/332fa213a52cc7607fb381af6d196f51f073f97ebdb113e4db9bde55663018ce?d=identicon)[\[-UFO-\]Melkor](/maintainers/[-UFO-]Melkor)

---

Top Contributors

[![UFOMelkor](https://avatars.githubusercontent.com/u/571106?v=4)](https://github.com/UFOMelkor "UFOMelkor (42 commits)")

---

Tags

mysqlmysqli

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/dkplus-mysql-migration-layer/health.svg)

```
[![Health](https://phpackages.com/badges/dkplus-mysql-migration-layer/health.svg)](https://phpackages.com/packages/dkplus-mysql-migration-layer)
```

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