DEV Community

Discussion on: Best PHP Micro Frameworks for 2024

Collapse
 
denys_bochko profile image
Denys Bochko

Good article.

Are there any specific usecases those frameworks are best for? The reason I am asking is that I read Slim is the best API framework in php.

Collapse
 
n0nag0n profile image
n0nag0n

So it's interesting, all of these frameworks come with the bare bones that you can attach other things to. For slim, you can just do it for restful APIs, or you could build a full web app by attaching a container and adding different services. You could do the same with Flight and Fat-Free as well. Lumen is on it's way out to just being offered as Laravel only (following what Symfony did with Silex).

There are some core differences between how these frameworks approach to building a web app. That said, I would say Slim and Flight are your best bets for keeping it clean long term, and if I had to pick one over the other, I would pick Flight because it has no dependencies and just enough "extras" to still feel bare bones, but to have some added extras where you could get away with doing a simple API with no added packages. FatFree has a little more "built in" but it does have some dated practices like no real middleware, but there are workarounds to make it "seem" like it has middleware.