I want to implement the server part of a client-server application, Some sort of interaction between Android and PHP. but I don't know if there is a structured method for implementing server part in PHP. I use files like create-user.php that get parameters from Android app and do some queries on database and this works fine!! But this does not convince me. I have seen patterns like RestUtils::sendResponse(200, json_encode($output), 'application/json');
in StackOverflow that do the same thing that i do, but in some good looking fashion.
My questions:
if there are best practices please refer me to them.
what is the best Request method (among GET and POST) for tasks like signup?
how can I boost my applications security? I have a signin but this is a very common user & pass check. I this project was all on web I can use cookies to secure the app. But because of being client server I dont know how to boost security? if anyone without singing in request some of my php scripts I dont know how to prevent this.
Please Help Me with referring me to pages.. Thanks in advance.