Code analysis tools to help with upgrading an app to a newer PHP version?

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

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • Rector

    Instant Upgrades and Automated Refactoring of any PHP 5.3+ code

  • You should look into https://github.com/rectorphp/rector. I am not sure that it will only identify things that need to be done (as I've not had use for the tool), but this is the tool everyone recommends as it will automatically upgrade your code for you.

  • PHPCompatibility

    PHP Compatibility check for PHP_CodeSniffer

  • I found https://github.com/PHPCompatibility/PHPCompatibility to be useful when migrating a legacy Zend 1 codebase from 5.4 to 5.6, and then to 7.1.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • PHP Code Sniffer

    PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards.

  • I recently did a compatibility check from 7.0 to 7.4 on a project using squizlabs/PHP_CodeSniffer and PHPCompatibility/PHPCompatibility. I set them up globally so I could use them on any project by doing:

  • awesome-php-migrations

    Awesome sources for PHP projects migrations - legacy, pattern refactoring, framework switches, temlates and configs...

  • https://github.com/TomasVotruba/awesome-php-migrations might be of interest

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

  • Docker - Run/Refactor PHP code from a web interface

    4 projects | dev.to | 1 Jan 2022
  • Rector keeps your PHP code base fresh and perfect

    2 projects | dev.to | 15 Mar 2024
  • Avoiding empty() in PHP

    4 projects | /r/PHP | 11 May 2023
  • 7.4 to 8.x upgrade help

    2 projects | /r/PHP | 29 Apr 2023
  • Upgrade your project to PHP 8.2 with Rector

    2 projects | dev.to | 18 Mar 2023