PHPackages                             ssigwart/lambda-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. ssigwart/lambda-php

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ssigwart/lambda-php
===================

PHP runtime for AWS lambda.

v1.0.1(4y ago)013MITPHPPHP &gt;=7.0.0

Since Dec 26Pushed 4y ago1 watchersCompare

[ Source](https://github.com/ssigwart/lambda-php)[ Packagist](https://packagist.org/packages/ssigwart/lambda-php)[ Docs](https://github.com/ssigwart/lambda-php)[ RSS](/packages/ssigwart-lambda-php/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Compiling the Runtime
---------------------

[](#compiling-the-runtime)

```
cd scripts
./buildRuntime.sh
```

Writing a Lambda Handler
------------------------

[](#writing-a-lambda-handler)

1. Write a class that implements `ssigwart\LambdaRuntime\LambdaHandlerInterface`.
2. Write a `bootstrap.php` file that calls `\LambdaRuntimeBootstrap\RuntimeBootstrap::setHandler()` to set your handler.
    - This file can do additional work, such as setting up autoloading.
3. Place your files in a `handler/your_handler_name` directory, zip, and upload to lambda.
    - Make sure handler name configured in Lambda matches `your_handler_name`.

### Sample Handler

[](#sample-handler)

```
