How to efficiently update code from PHP5 to PHP8.1?

This page summarizes the projects mentioned and recommended in the original post on /r/PHPhelp

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • Rector

    Instant Upgrades and Automated Refactoring of any PHP 5.3+ code

  • Haven't used it myself, but I've seen Rector mentioned a number of times. Beyond that, digging into the 5 to 7 migration guide and the 7 to 8 migration guide would be good to browse.

  • PHPCompatibility

    PHP Compatibility check for PHP_CodeSniffer

  • You may want to look into the PHPCompatibilty ruleset for PHP_CodeSniffer to generate a report of what's obviously broken/deprecated programmatically as well.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts