Best PHP Framework? A 2018 update!



Which is the best PHP Framework? A question that I am getting a lot and this is the video answer that I wanted to have long time ago 🙂

It is difficult to have an objective opinion about the best framework out there and that’s why I am reviewing the ones that I have more experience with. More specifically:

– Codeigniter
– Laravel
– Phalcon
– Slim framework
– Symfony
– Zend Framework

…and finally I am reviewing the way to not choose any PHP framework and just work with composer…

, , ,

27 thoughts on “Best PHP Framework? A 2018 update!

  1. I'm used to Phalcon and absolutely love it. The Volt templates are almost a copy of Twig, so coming from Symfony or Silex you feel right at home, forms can be easily coded in a class, services can be added in the dependency injection container and off you go. And it is blazing fast because the framework is not written in PHP but in in C, Even with caching disabled it is wayyy faster than any other framework with caching enabled. It's a PHP extension so there's no vendor directory with a framework in it; instead all the classes are readily available, you don't need to 'use' classes from the framework. As with any framework it will take some time to get used to it, but the directory structure is very straightforward and I found learning it was very easy.

  2. PhaIcon killed it for me when i saw the many years it took to upgrade to PHP7. And it's impossible to track the control flow through a c library layer. And you are right documentation sucks.

  3. I hate everything what Composer stands for, thats why i use CodeIgniter 4. Composer makes people pull in uncontrollable and reviewed libraries by the hunderts. Paketmanagers have turned the world the world into a recycled garbage dump.

  4. What about Zend Expressive? ZF2 had issues with service manager, meaning you could invoke it from anywhere rather than using factory. ZF3 dealt quite nicely with it but it's still huge FW to grasp and flexibility is not a key point. For some people this doesn't matter but Zend Expressive comes with PSR-7 and PSR-15, and you can also choose between templating engine and DI container. Which is by my opinion good for any small projects or microservices or enterprise apps and is middleware oriented framework.

  5. I am using Symfony for 2 years now, and it can be small and large, tiny or huge, it's consisted of components. It can work without ORM if you like.. Everything is configurable and extendable.
    Two major drawbacks is that you WILL probably willingly end up with Doctrine as monster and performance killer. Seconds is that you will probably end up with at least 5 symfony components inside Symfony project for API application for example. I would suggest using Skeleton symfony over web-symfony as it's really tiny tiny, and could be lighting fast!

    Speaking of other frameworks, I worked with Code-igniter for 5 years and for small-to-medium projects it's totally fine, nothing is wrong with it. It's super-fast, if you know what are you doing, it can be extendable well, and ussually, you will not need to upgrade for long period of time. But as it comes handly mainly for un-experienced developers… could grow into legacy spagetti code very very fast.

  6. I use codeigniter for last 3 years, I love it, I learned it in less than two weeks, it is really easy and stable with very good documentation, my next step may be will be symfony, but not very soon☺, I am waiting for next version of codeigniter.

Leave a Reply to skillful77 Cancel reply

Your email address will not be published. Required fields are marked *