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

1

u/greg8872 Nov 06 '25

I wouldn't say that Laravel being heavier is always false, it just depends on the needs.

I have an active API for a SaaS that consists of just 6 files (.htaccess, index.php, config.php, classes/Database.php, classes/DbFactory.php and classes/Utilities.php) plus one controller file per endpoint. Works just fine for my needs and all 20 endpoints.