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 /r/PHP

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • 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.

  • 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
  • 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

    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
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