Upgrade from MySQL to MySQLi

The MySQLi Shift upgrades code using the MySQL extension to use the MySQLi extension.

Requirements

A PHP codebase.

Why upgrade from MySQL to MySQLi?

The MySQL extension was deprecated in PHP 5.5 and removed in PHP 7. Upgrading your code to use the MySQLi extension provides a familiar, improved API and keeps you compatible with the latest versions of PHP.

MySQLi Upgrade

The MySQLi Shift upgrades your code to use the MySQLi extension, including:

  • Translating MySQL functions and constants to their MySQLi equivalent
  • Rearranging function parameters for MySQLi
  • Injecting the resource parameter for MySQLi functions
  • Normalizing parameters for mysqli_connect()
  • Detecting removed MySQL functions

Still have questions? Message @laravelshift on Twitter or email shift@laravelshift.com.