Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 975 Bytes

README.md

File metadata and controls

45 lines (35 loc) · 975 Bytes

serverless-php

PHP for AWS Lambda via Serverless Framework using Symfony components for dependency injection.

This repository is set up with Git LFS for the php executable, so make sure you have it installed and supported.

Prerequisites

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