rector/rector-downgrade-php
rector/rector-downgrade-php provides Rector rules for downgrading PHP code, automatically rewriting modern syntax and features into older, compatible versions. Useful for backporting projects or libraries to legacy PHP runtimes with repeatable transformations.
Rector Downgrade PHP is a Rector ruleset that automatically transforms modern PHP code into equivalent syntax compatible with older PHP versions—so you can write with today's features while shipping code that still runs on PHP 7.x and below.
It rewrites new language constructs back to legacy equivalents, making it ideal for libraries and packages that need to maintain backward compatibility across supported PHP versions.
match, and moreHow can I help you explore Laravel packages today?