What is the PHP structure for a RoR developer?

For one specific client, I have to use PHP. This and this question was 2 years old. I would like to know if there are any updated opinions for 2010?

My background on web development is mostly rails. I can code in PHP (for example, write a module for Drupal), but I never used the PHP framework for any project.

In my project, you can see the following potential features:

  • authlogic -like user access control
  • will_paginate -like paging for long ads
  • paperclip - like a simple file upload.
  • prawn -like PDF generation
  • calm url

and my personal favorite ruby ​​/ rails features:

  • activerecord
  • <% @list.each do |item| %>instead of for ($i=1; $i<=$row_num; $i++)...
  • rake:db migrate
  • script/console

Thank!

+5
4

, , , Rails PHP! Ruby Rails PHP. , 5.3, ActiveRecord - PHP.

, Kohana , , - - OO Zend Framework. CakePHP Rails-, PHP4. !

+7

, , Ruby PHP.

PHP. . Symfony .

Django. , .

+4

PHP, Rails.

CodeIgniter , PHP, , .

CakePHP , , , Rails. Ruby , PHP .

, , PHP - 25-50% , PHP.

+3

PHP, :

Ruby/Rails PHP:

<% @list.each do |item| %>

PHP, :

<?php foreach($list as $item): ?>
...(HTML)...
<?php endforeach; ?>

And for script / console, you can use PHPSH (developed by Facebook) located at:

http://www.phpsh.org/

Hope this helps! Matt

+1
source

All Articles