2017 © Pedro Peláez
 

library mysql-migration-layer

Layer for migration from mysql to mysqli.

image

dkplus/mysql-migration-layer

Layer for migration from mysql to mysqli.

  • Thursday, January 7, 2016
  • by [-UFO-]Melkor
  • Repository
  • 1 Watchers
  • 0 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 3 Versions
  • 8 % Grown

The README.md

MySQL migration layer

Build Status Scrutinizer Quality Score Coverage Status Total Downloads Latest Stable Version Latest Unstable Version, (*1)

Layer for migration from mysql to mysqli., (*2)

Installation

composer

For composer documentation, please refer to getcomposer.org., (*3)

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

Post-install

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

You can do this step automatically. Therefore you must also install nikic/php-parser:, (*5)

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

Then you can run the converter by calling:, (*6)

php vendor/bin/convert-mysql.php [-w] <file>

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., (*7)

You can add the -w switch if you want to override the original file with the converted code., (*8)

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

Use find to convert a whole directory recursively:, (*10)

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

The Versions

07/01 2016

dev-master

9999999-dev

Layer for migration from mysql to mysqli.

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mysqli *

 

The Development Requires

mysql mysqli

23/12 2014

dev-gitignore

dev-gitignore

Layer for migration from mysql to mysqli.

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mysqli *

 

The Development Requires

mysql mysqli

26/11 2013

0.1

0.1.0.0

Layer for migration from mysql to mysqli.

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mysqli *

 

The Development Requires

mysql mysqli