initial commit of php-api files

this php-api uses silex as the framework to handle request via POT and
GET