This project provides classes that make it easier to build the response needed for Lambda and API Gateway integration.
Do this, then relax:
composer require guillermoandrae/php-lambda-api-gateway-response
Run the following command to make sure your code is appropriately styled:
composer check-style
Run the following command to check style, run tests, and generate a Clover report:
composer test
Run the following command to check style, run tests, and generate an HTML report (access the report at http://localhost:8080):
composer test-html