PHP MVC framework for ASP.NET MVC / NHibernate developer

For the class, I would like to use a PHP MVC framework very similar to ASP.NET MVC with NHibernate. I really like ASP.NET MVC. I need to use PHP and MySQL. I would not want to worry about SQL to save time. I would like to just develop PHP model classes and controllers without any data access logic I would have to write.

Any suggestions? Thank.

Also, I am very limited in what I can install on the server. For example, I cannot update PHP or run other installers. I want something that I can drop by.

+2


source to share


3 answers


I prefer Zend Framework MVC components combined with Doctrine if you really need a lot of power. but for something simple try CaKePHP as it has its own simple ORM implementation and the framework is built like a php Ruby on Rails version.



+2


source


My personal preference for "MVC Framework" will probably be Zend Framework - although that's not the only possible choice (I'm thinking of symfony , for example).



On the "don't write SQL" part, I would use Doctrine , which is a great ORM framework.
It is actually the standard Symfony ORM framework and can be easily used with the Zend Framework.

+1


source


I suggest Symfony . It uses Doctrine (which is also partially inspired by Hibernate), but it integrates deeper with Symfony than Zend Framework. Symfony provides a number of helper classes that really help automate Doctrine (my favorite sfDoctrinePager). Zend Framework is a good choice, but I recommend taking a look at Symfony first. I would avoid other PHP MVC frameworks as they tend to be less flexible and if you are switching from another language you may have your own preferences as to how to attack a specific problem - Symfony and ZF will both give you leeway in this sense.

0


source







All Articles