Silex vs SLIM PHP Framework

On January 12th 2018, Fabien Potencier, main author of this micro-framework, wrote that Sensiolabs stops supporting Silex.

https://symfony.com/blog/the-end-of-silex

Quote from Silex official site:

Silex is in maintenance mode. Ends of life is set to June 2018. Use Symfony 4 instead. Read more on Symfony's blog.


I had the same choice to make, and I choose Silex, here is why :

  • Silex seems to have a bigger community than Slim, maybe it's just my point of view
  • It's based on Symfony components, so with a bit of reflection, you can use tips and workarounds which work for Symfony and apply them to Silex.
  • As it's based on Symfony it has a better integration with other bundle (for example Twig, which is for me necessary)
  • This Symfony base also garanty that it will be more "Long Term Support" that Slim, which is independent.

To conclude, the main argument is that is based on Symfony which has many advantage. The Symfony Debug tools are the best thing on earth !!

Now I have two sites made with Twig and I'm really happy !

You can also see that, it's a technical comparison of these both frameworks : https://michalzuber.wordpress.com/2015/04/02/silex-vs-slim-php-microframework-comparison/


Slim 3 is very light weight and well suited to APIs.

You can optionally inject a container (Pimple by default but any Container-Interop will work) when constructing your Slim app. The Silex app extends Pimple so is a container.

Require slim/twig-view if you need Twig.

Slim's Request and Response support PSR-7 HTTP message implementation.

Tags:

Slim

Silex