I'm a beginner (both in PHP & Python). but, I had built web project with flask. So, I'm more familiar with "how flask works". And spesifically, I like the "blueprint" concept of the flask.
Now I want to learn PHP, but I find it hard to get learning resource (book/article) that using similar concept as flask.
Maybe can anyone share some thought about "microframework" in PHP that share similar concept with flask?.
Note:
- I don't choose Laravel beacuse I just want to build simple web app, and I think microframework help me learn lot more.
- I tried to learn Slim Framework, but I still don't get the idea of how slim framework works.
- Sorry for my bad english :)
Top comments (7)
I understand that you want something simple, but I'd still recommend giving Laravel a try. When you use it without the bootstrapping it is quite clean and if you only want to build an API you can simply ignore / remove all the UI and user management stuff.
I'm actually a mobile developer and only got into backend development very recently. I tried different frameworks but I found Laravel the easiest and quickest to learn. Especially because it has very good documentation and a vivid community. So it is quite easy to find solutions for common problems.
For example I just built a Slack bot for chat roulettes in Laravel. I didn't use any of the bootstrapping and build all the APIs manually. But I could tap into the Laravel ecosystem for things like OAuth, Payments and interactive UI (LiveWire), which saved a lot of time.
Thank you, I definetely need to learn more about laravel
rather than finding it, just find a way how to modularize the business logic (like flask's blueprint) in the framework. try to find it in Slim framework, if it not possible then move to another micro framework.
I'm trying to follow this tutorial
odan.github.io/2019/11/05/slim4-tu...
But I felt too much information to grasp at once. It's hard to understand what happened.
Maybe you have some recomended article/tutorial about the topic? Thanks!
Maybe take a look at Slim
flightphp.com/
Flight - A lite-weight framework but simple, easy to use, quite full, and quick to create website or webapp. It's quite the same as Flask.
Thank you!