PHP-to-Scala Migration Helper is a tool that enables individuals and organizations with a significant PHP codebase to migrate to a Java-centric environment completely free of any PHP source code, PHP tools, PHP servers, and PHP developers. PHP-to-Scala Migration Helper is technically a PHP compiler, but it translates to readable, maintainable source code rather than machine code. Its goal is not to make PHP code run faster, but it is not an unwelcome side effect.
mysql-diff is a commandline database structure comparator. It compares the structure of two databases. It currently works with MySQL. A database can be specified as an SQL script or as an URL to a running database. So the tool can compare two scripts, two live databases, or a database and a script. The tool outputs SQL DDL script that can be used to convert one schema to another.