Smart PHP Framework for RESTful and In-App