Example of rendering a React component in PHP through a Lambda function.
You can install the example through Composer and NPM:
$ git checkout https://github.com/webstronauts/php-react-lambda-example.git
$ cd php-react-lambda-example
$ composer install
$ npm install
Then package and deploy the React code to AWS Lambda:
$ npm run deploy
Now run the PHP application with the following command:
$ composer run
The above installation steps all assume that you have setup an AWS credentials file in your HOME directory.
The MIT License (MIT). Please see LICENSE for more information.