Let’s discuss the most popular frameworks, like which one is better, and share our actual experience. I’m not sure there will be a lot of people who actually worked with them, since they are more commonly used in big corporate projects, but... It won’t hurt to have such topic. My first two questions to all of you:
1. Symfony vs. Yii – which one is better? Does Symfony’s performance really so much lag behind as Yii community likes to say?
2. Annotations vs. YML – pros and cons?
I don't know anything about Symfony so I can't compare it to Laravel. But as a Laravel users, I found it really easy to learn, and there are a lot of documentation found with google if I found problems.
I voted for "don't use / don't like" - but I DO use them ... I just don't like them. They're a tool, and I've filtered through a LOT of garbage to come up with what I use. I don't like them because they add overhead. Usually a LOT of overhead - and I don't use them for much.
The one I use and like most, is Phalcon. You've got to have a VPS because you're installing Apache modules, but most all my sites are on a VPS now anyway. My second in line is Laravel. It's by far the most popular, and has a larger community which is helpful. I've used Slim more, because I don't use tons of framework functionality, and I'm adverse to Composer.
Phalcon is an Apache module so it's compiled in C giving it the potential to be faster than any framework in PHP (provided it's coded reasonably well, and it is). I use a framework basically for routing, and a template engine. I can get both without one, but why? I don't use ORM, and I really don't like it. My models are classes that run sql. My front controller doesn't use "mvc" routing where the url is /controller/method/variable1/variable2 ... I define them all. So I don't need or want a heavy framework. I don't like my code interspersed with a million libraries I'll never use. I don't like to dig through frameworks code to get to directories where my controllers are, or where my views are. So Phalcon, it's all your code in PHP, you're calling C code through the Apache module instead of a a bunch of crap in the Composer directory structure.
Best for me: Phalcon, because devops isn't a problem, it's template engine is excellent, and it's all fast.
Best for most: Laravel, because all the tutorials / walk throughs love Composer, and Laravel is made for that environment. It's very full featured, and the most popular by far. Best documentation, and it's respectably fast considering it's features.
Best for some: Slim. Especially if you're building an API and all you need is a router. You can even drop Eloquent in there if you need an ORM. I used to use it with Twig - but since I do the "no Composer" method, it's install isn't any easier than Phalcon which is orders of magnitude faster.
Nowadays, Laravel getting popular compared to other PHP frameworks. Using laravel, the development is very fast and secure and provide well-organized, reusable and maintanable code with it's elegant syntax.
First I would like to share my ideas about my favorite framework, Codeigniter that is. It has the least footprint out there, compared to all the other frameworks.
HMVC is the most attractive thing I find in it.
It has one con, it's routing system is still behind most other frameworks, but there are solutions thanks to it's very high capability of being extended, and by using one only extension, it has the power of Laravel's routing.
Now, to your first question. Yii(2) is known for it's very high performance and speed while Laravel is very slow in comparison and rumors are true in this sense. But it lacks to many features of Laravel's such as routing which Laravel is know for.
Yii is not too active, while Laravel is. Laravel is very much more and better documented compared to Yii(2).
So the answer is obvious (to me), Laravel wins (9 - 1).
I chose Other because I used to study CodeIgniter in school. However, I don't really code backends so much so my opinions don't really matter lol. Anyway, if I really do going to code backend again, should I use Laravel? My friends suggested it to me and I see a lot of positives in here. It'd be appreciated if someone can tell me where to start. Thanks!
I love CodeIgniter, it's easy, secure and have MVC pattern. I great for all project sizes and help you to develop fast.
Laravel is a great choice, but it learning curve is more difficult due to a strict programming style in PHP, but still recommended.