I have a set of PHP scripts that are directly executed– now I want to convert the core code (ie the functionality provided by the PHP scripts into an API– I would also want the API to use OAuth2 for authenticating a user (before the API can actually be used by the authenticated user…)
What is the shortest/easiest way to accomplish this? If there is some way of automating this, doing it very quickly that would be great because I have a lot of PHP code that I want to convert into an API.
Any links to guides/how-to s on this subject would also be welcome….
You could try the restler framework, If you have build your code in object oriented fashion, this will be easier for you to use the restler.