What is the best way of writing a REST API with PHP?
This question strong small @DHTML...But from experience, I have written REST API Using PHP from scratch and also with the help of Laravel Framework too...Both seems to solve my problems...But I give it to the Framework thing
I have done all the above too, right now I am trying out laravel passport.
If you are doing it over plain php, you would want to return those responses manually by encoding and decoding/parsing when needed.
a very good suggestion