r/PHPhelp • u/Even_Gold2158 • Oct 31 '25
develope a Rest API
Hello, I want to develop a restapi, what framework would you recommend?
I'm searching myself, there are many options, but I'm worried about the security of the inputs.
If anyone has experience, I'd appreciate some advice.
Laravel is heavy, let's think about a simple api!
I want a simple and secure framework :(
8
Upvotes
View all comments
Show parent comment
7
u/lokidev Oct 31 '25
I was switching form Zend and that was a pain. Also upgrading the same framework can sometimes be a huge PITA.
I just consider you haven't written about Django/Ktor/etc., as I obviously was talking about frameworks in the same language ecosystem.
A general good approach is to keep as much business logic as possible separate from implementation details like REST vs GraphQL, Postgresql or Mongodb, etc. - Especially as you might find out, that suddenly you want to have gRPC for fast communication with some device or whatever other reason you can think of. Don't tie your application to close together but make actually use of the initial idea of OOP: separate concerns and ideas.