PHP for AWS Lambda via Serverless Framework using Symfony components for dependency injection.
This is version 0.1, see master for the latest.
See my blog post for more information.
This repository is set up with Git LFS for the php executable, so make sure you have it installed and supported.
Install this project:
serverless install --url https://github.com/araines/serverless-php
composer install -o --no-dev
serverless deploy
serverless invoke local -f hello
serverless invoke -f hello
The PHP binary can be built with any flags you require and at any version.
sh buildphp.sh
Edit buildphp.sh and dockerfile.buildphp to alter it.
- Robert Anderson for the inspiration and base for this project