DEV Community

Kolja
Kolja

Posted on

What PHP backend API is your favorite?

I try to switch my webdev from HTML with PHP templates to a JS framework with an API.
Do you have some hints for a PHP based backend for me?

Top comments (7)

Collapse
 
eshimischi profile image
eshimischi • Edited

Laravel, Yii 2

Collapse
 
kolja profile image
Kolja

What are the real advantages of an framework? I just need to read the url for the endpoint and the params, call a function with SQL queries and send back a JSON object.
Is it not overcomplicated to use a framework for that?
I mean, if there are an Interface like Appwrite or Supabase with no or less coding, i would give a try.
But i did not found this based on PHP. Directus was, but they switched to node too.

Collapse
 
eshimischi profile image
eshimischi

Your question was clearly about “PHP based backend” that’s what you asked? No?

Collapse
 
saravanasai profile image
Saravana Sai

Yes i think you can try out php frameworks my fav is laravel you can get idea of it within 1 week ...if you have some basic of php .....try out it wil be more use full ......

Collapse
 
kolja profile image
Kolja

Laravel seems a bit to much, just for an API. To be honest, the only reason to not write the SQL queries in the frontend, is the authentification, isnt it?

Collapse
 
rahmanramsi profile image
rhmrms

Appwrite

Collapse
 
kolja profile image
Kolja

Looks great, like strapi, supabase & co, but they are out of my skills. And BackendAsAServise is nothing my customers would buy.