For one specific client I have to use PHP. This and this question were 2 years old. I’d like to know is there any update of opinion for year 2010?
My background on web development is mainly rails. I can code in PHP (for example, write a module for Drupal) but never used any PHP framework for any project.
I can see the following potential features to be needed in my project:
authlogic-like user access controlwill_paginate-like paging for long listingspaperclip-like simple file uploadprawn-like PDF generation- restful url
and my personal favorite ruby/rails features:
- activerecord
<% @list.each do |item| %>synstax instead offor ($i=1; $i<=$row_num; $i++)…rake:db migratescript/console
Thanks!
Please, for the sake of all that is good and holy, don’t write Rails in PHP! Ruby idioms and Rails idioms simply do not translate well into PHP. Hell, until 5.3, you couldn’t even do ActiveRecord without insane hackish workarounds due to PHP’s limitations.
Try a modern framework like Kohana or maybe something more engineered-OO like Zend Framework. CakePHP tries to be Rails-like, but is stuck in the past of PHP4. Avoid it!