Ask HN : Which PHP Framework to prefer?
1–10 of 13 posts
Re: Ask HN : Which PHP Framework to prefer?
#2Re: Ask HN : Which PHP Framework to prefer?
#3I would say Zend Framework not the easiest to learn but very well structured and reliable.
Re: Ask HN : Which PHP Framework to prefer?
#4I would say Zend Framework not the easiest to learn but very well structured and reliable.
[deleted]
There are issues however with performance, I've found. A brand new project loads in ~40ms, and that's before you've done any work at all. Add in some forms with Zend_Form and other bits of functionality and you can start to see page load jump over 500ms (though admittedly this is in part due to poor base code written by the company). Zend Framework 2 however is no better - performance is far far worse than Zend Framework 1.* currently. I have also seen some very bad reviews of ZF2, comparing it to Java applications in verbosity and complexity.
I can't recommend any other framework as I don't code in PHP at home, I use Django for personal projects, however I can say that I've heard very good things about Kohana.
Re: Ask HN : Which PHP Framework to prefer?
#5The slim framework docs are perfect, the code is clear and the forums are great. I especially like that it doesn't force you to do everything in one predefined way, making the learning curve nice and low
Re: Ask HN : Which PHP Framework to prefer?
#6Re: Ask HN : Which PHP Framework to prefer?
#7Re: Ask HN : Which PHP Framework to prefer?
#8Re: Ask HN : Which PHP Framework to prefer?
#9I've always used CI. I know a lot of people tend to look down on it, but it's easy to use and suited my needs. Can't you install both Yii and CI and decide which one you like best?
If you want a full featured framework, Symfony2 is a good everything including the kitchen sink although it's a bit more Java-esque (which make sense since much of PHP's OO design is based on Java). http://symfony.com/
For something lighter weight, Silex is based on the Symfony2 components, so it's super easy to pull in more components as you need them. http://silex.sensiolabs.org/
Even if you're not using Symfony2 it's really modular and easy to integrate with other frameworks - we're running CI as our base framework due to legacy reasons, but all of our new work leans heavily on Symfony2 components.
Re: Ask HN : Which PHP Framework to prefer?
#10The best parts about it are that the source is very readable and it's extremely easy to override the default behavior of many modules. I would strongly recommend doing this as much as you need to because Kohana's defaults may not make sense for your usecase. The biggest downside is that v3 is very different from v2 and a lot of the documentation and help still assumes v2 (this is why easy to read source code is important.