Example of rendering a React component in PHP through a Lamda function.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
client
lamda
server
.gitignore
LICENSE
README.md
composer.json
composer.lock
gulpfile.js
package.json
webpack.config.js

README.md

PHP React Lambda Example

Example of rendering a React component in PHP through a Lambda function.

Quick Installation

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.

License

The MIT License (MIT). Please see LICENSE for more information.