Automagic migration to PHP 5

I’ve thought about writing something like this for a while now, but so far haven’t had the impetus to do so. However, an upcoming project at work is going to be a PHP 5 migration. Presenting PHP_Migrate4to5, a tool to automate the grunt work of PHP 4 to 5 migration.

What it does

Future plans

These features may or may not make it in.

What it needs

PEAR, PHP_Parser, and some PHP 4.x code. I don’t believe it will work with PHP 5 at the moment, since it has a new token for docblocks. It works fine with PHP 4.3.11.

How to use it

$ php -q Migrate4to5.php Your-PHP4-Code.php > Converted-PHP5-Code.php

Download

Get it here: v0.5.1.

2005/09/21
Previously On Atomized:

Participate