We have narrow down our search between Silex and Slim PHP frameworks for routing our REST APIs on our Apache/PHP/MySQL Server.
Both seem to have good reviews. Silex has probably a bigger community because it came from Symfony. But the documentation seems to be better in Slim.
What do you guys suggests? Any real world experience from production environments?
Sathish
Slim framework plays well with good software practices including SOLID principles, design patterns, security principles and dependency injection. Slim's easier to learn than fullstack frameworks such Laravel or Symfony.
Slim is a PHP micro framework that helps you quickly write simple yet powerful web applications and APIs. php use Psr\Http\Message\ResponseInterface as Response; use Psr\Http\Message\ServerRequestInterface as Request; use Slim\Factory\AppFactory; require __DIR__ . '/../
I had the same choice to make, and I choose Silex, here is why :
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/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With