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
4
u/BlueScreenJunky Oct 31 '25
I really have trouble understanding that argument.
How many times have you actually "switched framework" in a decently sized project (without it being a full rewrite anyway) ? Also it only really works if I switch between Laravel and Symfony... If I was to swtich to Django, Rails, .Net, Gin, Ktor or Spring Boot I would have to rewrite from PHP to another language anyway.
I mean there are advantages to decoupling your business logic as it makes testing and refactoring easier. But if your only reason is "I may want to switch frameworks later" I think you're limiting yourself and probably not leveraging the full potential of the framework, for potential gains in a very hypothetical scenario.