PHPackages                             christoph-kluge/cloudfront-edge-php-adapter - 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. [API Development](/categories/api)
4. /
5. christoph-kluge/cloudfront-edge-php-adapter

ActiveLibrary[API Development](/categories/api)

christoph-kluge/cloudfront-edge-php-adapter
===========================================

A cloudfront edge event transformer for symfony or laravel request objects

0.2.1(4y ago)391MITPHPCI failing

Since Aug 24Pushed 3y ago2 watchersCompare

[ Source](https://github.com/christoph-kluge/cloudfront-edge-php-adapter)[ Packagist](https://packagist.org/packages/christoph-kluge/cloudfront-edge-php-adapter)[ RSS](/packages/christoph-kluge-cloudfront-edge-php-adapter/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (4)Versions (12)Used By (0)

Cloudfront@Edge Event to Request Transformer
============================================

[](#cloudfrontedge-event-to-request-transformer)

This small package allows you to transform a Cloudfront@Edge Event into a proper Request-Object

Install
=======

[](#install)

To install via [Composer](http://getcomposer.org/), use the command below, it will automatically detect the latest version and bind it with `^`.

```
composer require christoph-kluge/cloudfront-edge-php-adapter

```

Usage Example (long running process - one process for multiple requests)
========================================================================

[](#usage-example-long-running-process---one-process-for-multiple-requests)

Please take care that your application MAY require adoptions to run in a long-running-process.

Advantages:

- Your app is always warm after ther initial request
- Leverage full potential of opcache

Performance Measurements

This code runs in a production environment api. Almost every endpoint responsds in &lt;10ms (server-response time) w/o the usage of memcache/redis/..

```
#!/opt/bin/php
