Skip to content

Babel.js for PHP — Transpile the *other* way #7460

@skyzyx

Description

@skyzyx

Feature Request

As a long-time vendor of some popular open-source software, I've wanted for a long time something like Babel.js for PHP. Something where I can write code for PHP 8.x, then transpile it back to older versions of PHP that my customers run.

This appears to be doing the exact opposite. :) But, the logic here to move a project in one direction is very similar to the logic required to move in the other direction.

So that's the request — a project that allows me to write clean, modern code, then transpile it back to older versions of PHP so that customers can run it in their — likely older — environments.

(I'm not saying that running EOL versions of PHP is in any way a good idea. But reality dictates that customers like this exist, and I've love to support them without hating life.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions