Move API controllers to PHP file.