Tool to downgrade your PHP codebase from PHP 5.4+ to PHP 5.3. Built on top of galapagos.
in your project, which includes
You may have to manually fix some remaining problems, usually they're quite simple.
Use it when you have a PHP 5.4+ codebase and just can't upgrade your client's infrastructure.
- Convert new array syntax to old one. (
- Inject traits code into classes that use them.
- Analyze every vendor's
composer.jsonand convert them if it's needed
- Downgrade function calls with different signature.
- Custom node transformations
Using custom node transformations:
./php-code-downgrade [path-to-downgrade] -t transformations/phalanger