This is a working API deployment kit in PHP, allowing depoyment of simple APIs from common data source:
This working examples uses a PHP REST framework called Slim. A separate endpoint is provided showing how to deploy API from each data source.
If there is another deployment example you'd like to see, let me know.