Shift with red gradient lettering

Upgrade from Mysql to Mysqli

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

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.

Screenshot of a pull request with automated changes from the MySQL to MySQLi Shift


  • A PHP codebase.

Automated Changes

  • 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

Sign in with any of the following services to connect Shift with your Laravel project.

Don't use one of these services?

Temporarily push your project to a free, private repository on one of these cloud-based services or upgrade your project locally with Shift for Docker.