Skip to content

araines/serverless-php

Repository files navigation

serverless-php

serverless php

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.

Prerequisites

Install this project:

serverless install --url https://github.com/araines/serverless-php

Deploying to AWS

composer install -o --no-dev
serverless deploy

Running locally

serverless invoke local -f hello

Running on AWS

serverless invoke -f hello

Rebuilding PHP Binary

The PHP binary can be built with any flags you require and at any version.

Prerequisites

Compiling

sh buildphp.sh

Altering compile flags etc

Edit buildphp.sh and dockerfile.buildphp to alter it.

Thanks

About

PHP for AWS Lambda via Serverless Framework

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors