r/PHPhelp • • 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

32 comments sorted by

View all comments

Show parent comment

2

u/obstreperous_troll Oct 31 '25

It works well with api-platform, but be sure to read about using DTOs instead of poisoning your entities with API logic.

Sure would be nice if API Platform's docs emphasized using DTOs from the start. As it is they're treated as an afterthought.

1

u/CyberJack77 Nov 01 '25

Yep, the documentation is missing a lot on DTOs.