Im looking for a framework (or a tutorial/website guideline) on how to build a php based api. The api would be accessed by a website and mobile apps. Here are the specification:
- I need to be able to create php classes and have the methods
accessible via a post request - authentication! Users need to log
in (i guess that would be a class in itself) but most importantly,
the app/system trying to access the api would first need to provide
a valid access token
I looked into Zend, but im not sure if it can accomplish what im looking for. Can anyone point me in right direction?
The Symfony2 framework has a lot of good support for REST APIs. The FOSRestBundle is popular and can do most of the API work for you, and they just released a video of a talk on REEST APIs from their recent developer conference in Paris.
For authentication, Symfony2 has user auth built in (documentation). Most people also use the FOSUSerBundle, which adds in user registration, password recovery, etc.