Why do you need to write a web application then duplicate the codes agian painfully when you want to build an API for it which you will cause you double editing as the changes comes along
-- With Awesome PHP Framework you are going to share the same logic for both you web application and your corresondent web services.