PHPackages                             likeuntomurphy/serverless-runtime - 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. likeuntomurphy/serverless-runtime

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

likeuntomurphy/serverless-runtime
=================================

Symfony Runtime implementation for AWS Lambda

v0.1.0-alpha2(3mo ago)010MITPHPPHP &gt;=8.5CI passing

Since Apr 8Pushed 3mo agoCompare

[ Source](https://github.com/likeuntomurphy/serverless-runtime)[ Packagist](https://packagist.org/packages/likeuntomurphy/serverless-runtime)[ RSS](/packages/likeuntomurphy-serverless-runtime/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (7)Versions (2)Used By (0)

Serverless Runtime
==================

[](#serverless-runtime)

A [Symfony Runtime](https://symfony.com/doc/current/components/runtime.html) implementation for AWS Lambda. Run a standard Symfony application on Lambda with no code changes to your controllers, services, or templates.

How it works
------------

[](#how-it-works)

The Symfony Runtime component decouples your application from how it's executed. This package provides a `Runtime` that translates API Gateway v2.0 (HTTP API) events into Symfony `Request` objects and returns the `Response` as a Lambda-compatible payload. Console commands are supported via a `console` key in the event payload.

Your application code stays the same whether it runs on a traditional web server or on Lambda.

Installation
------------

[](#installation)

```
composer require likeuntomurphy/serverless-runtime
```

Usage
-----

[](#usage)

Create a `bootstrap` file in your project root:

```
#!/opt/php/bin/php
