Ruby.PHP

Ruby.PHP is a compiler of Ruby to PHP. It is currently able to compile small Ruby scripts into a PHP code, which can be run using PHP CLI.

The ultimate goal of the project is to allow running Rails (or other Ruby frameworks/applications) on any PHP hosting. See the Frequently Asked Questions for more information.

Try the compilation online

News

30 May 2008 I've just uploaded a new version of the compiler to the server. It contains more support for exceptions (full implementation of Kernel#raise/Kernel#fail and rescue/else statements), implements several new methods and contains many bug and compatibility fixes.
6 April 2008 Last weekend, Ruby.PHP was presented on EURUKO 2008 – Europen Ruby Conference which took place in Prague, Czech Republic. You can download the presentation slides (PDF).

Interested?

The compiler will be published for download soon, including its source code. If you would like to be notified when this happens, leave us your e-mail: