开发者

Is there any way to easily convert Ruby code to PHP? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.

Want to improve this question? Update the question so it focuses on one problem only by editing this post.

开发者_C百科

Closed 7 years ago.

Improve this question

We need to develop a functionality for one of our client's website. However, we actually have that code ready in Ruby. Is there any way to directly convert that ruby code to PHP?


When you say Ruby code, what exactly are you talking about? A snippet of code that needs to be used somewhere on the website? Or perhaps an entire Ruby on Rails application?

In either case you're not going to find an automated solution to convert this to PHP. In the first case, a skilled PHP developer (ideally with at least some Ruby knowledge) should be able to convert this to PHP fairly easily. But if you're talking about an entire website, it's obviously a much larger undertaking, as you're not just dealing with your own code but with the underlying web application stack. Perhaps you can convert this app to a PHP based MVC framework like CakePHP, but again, you'd need an experienced PHP developer to do this, and in this case I think this would be a difficult task if they aren't also fairly familiar with Ruby on Rails.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜