#Build a RESTful API Web Service with PHP The API environment is composed of 2 files, an application script (index.php) and a URL redirection file (.htaccess).