When you say Ruby code, what exactly are you talking about? A snippet of code to use somewhere on a website? Or perhaps a complete Ruby on Rails application?
In any case, you will not find an automatic solution to convert this to PHP. In the first case, an experienced PHP developer (ideally with at least some Ruby knowledge) should be able to easily convert this to PHP. But if you are talking about a whole website, this is obviously a much larger event, since you are not just dealing with your own code, but also with the basic stack of web applications. You might be able to convert this application into a PHP-based MVC framework like CakePHP, but for that you will need an experienced PHP developer, in which case I think it will be a difficult task if they are also not quite familiar with Ruby on Rails.
source
share