Re:Laravel : A New PHP Framework
by thomseddon on Sunday May 27, 2012 @07:12AM
(#4029866)
CakePHP (http://book.cakephp.org/2.0/en/index.html) was initially built on ROR concepts. It follows a brilliant MVC pattern and gets you up and running with 'bake' (think 'rails generate') so if you know RoR and PHP, then you will feel very at home with Cake.
Re:Laravel : A New PHP Framework
by arthurschreiber on Sunday May 27, 2012 @01:33PM
(#4030546)
Yes, but their Model layer, in comparison with what ActiveRecord provides you with, is really not that great. One of the main aspects that I really didn't like was that the Model finder methods don't give you object instances back, but instead you get php arrays with the fetched data from the database.
Re:Laravel : A New PHP Framework
by thomseddon on Sunday May 27, 2012 @06:04PM
(#4031154)
Personally, I have never found this in any way restrictive?
Why do you want object instances?
Re:Laravel : A New PHP Framework
by davidlumley on Sunday May 27, 2012 @07:56AM
(#4029926)
Being a micro framework it's more similar to Sinatra than Rails.
In terms of main differences, it's PHP rather than Ruby which means it's verbose rather than terse and it's less automagical than Sinatra / DataMapper.
If you need to use PHP for a project, then it's a great choice, but if you don't then you're better off with Sinatra (or Express and Node depending on what you're wanting to do).
Try Yii, it is similar to rails in many respects http://www.yiiframework.com/
Just found out about Yii. How would you rate it?
RoR has spoilt me. Anything that is similar to RoR is highly attracted to me.