Can We Develop in PHP 8.1 and Still Output PHP 7.4 Code?

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

Our great sponsors
  • SonarQube - Static code analysis for 29 languages.
  • InfluxDB - Access the most powerful time series database as a service
  • SaaSHub - Software Alternatives and Reviews
  • phabel

    PHP transpiler - Write and deploy modern PHP 8 code, today.

    I have found this: https://github.com/phabelio/phabel but it only handles up to PHP 8.0.

  • Rector

    Instant Upgrades and Automated Refactoring of any PHP 5.3+ code

    I've also read this: https://github.com/rectorphp/rector can handle downgrading as well as upgrading but it's unclear if it can handle downgrading from PHP 8.1 specifically.

  • SonarQube

    Static code analysis for 29 languages.. Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.

  • polyfill

    PHP polyfills

  • rector-downgrade-php

    Rector downgrade rules for PHP

  • Enum

    PHP 7.1 enum implementation (by DASPRiD)

    Someone has created an enum implementation voor PHP 7.1 here: https://github.com/DASPRiD/Enum but it is different and not a polyfill for the PHP 8.1 enum.

  • InfluxDB

    Access the most powerful time series database as a service. Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression.

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