Download the PHP package christoph-kluge/cloudfront-edge-php-adapter without Composer
On this page you can find all versions of the php package christoph-kluge/cloudfront-edge-php-adapter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download christoph-kluge/cloudfront-edge-php-adapter
More information about christoph-kluge/cloudfront-edge-php-adapter
Files in christoph-kluge/cloudfront-edge-php-adapter
Download christoph-kluge/cloudfront-edge-php-adapter
More information about christoph-kluge/cloudfront-edge-php-adapter
Files in christoph-kluge/cloudfront-edge-php-adapter
Vendor christoph-kluge
Package cloudfront-edge-php-adapter
Short Description A cloudfront edge event transformer for symfony or laravel request objects
License MIT
Package cloudfront-edge-php-adapter
Short Description A cloudfront edge event transformer for symfony or laravel request objects
License MIT
Please rate this library. Is it a good library?
Informations about the package cloudfront-edge-php-adapter
Cloudfront@Edge Event to Request Transformer
This small package allows you to transform a Cloudfront@Edge Event into a proper Request-Object
Install
To install via Composer, use the command below, it will automatically detect the latest version and bind it with ^
.
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 <10ms (server-response time) w/o the usage of memcache/redis/..
Usage (new process per request)
Features
- [x] Support requests with different methods (GET, HEAD, POST, PUT, DELETE, ..)
- [x] Support laravel's dedicated response objects (Response, RedirectResponse, JsonResponse)
- [x] Support post requests from html forms with content-type : x-www-form-urlencoded
- [x] Support cookies
- [X] Origin custom - Read custom headers
- [X] Origin s3 - Read custom headers
- [x] Response might send headers as multiple list-items inside the response
- [x] Attachments - Single (
<input name="single"/>
) - [x] Attachments - Multiple - single named (
<input name="single_1"/>
<input name="single_2"/>
) - [x] Attachments - Multiple - array based input (
<input name="file_as_array[]"/>
<input name="file_as_array[]"/>
) - [x] Attachments - Multiple - array based with multiple flag (
<input name="files_as_array_multiple[]" multiple/>
)
TODOs
- [ ] Attachments - Multiple - single named with multiple flag (
<input name="single_with_multiple" multiple/>
) - [ ] Attachments - Multiple - multi-dimenionsional input name w/o multiple flag (
<input name="myfile[a][b]"/>
) - [ ] Attachments - Multiple - multi-dimenionsional input name w/ multiple flag (
<input name="myfile[a][b]"multiple/>
) - [ ] Attachments - Multiple - multi-dimenionsional input name with array w/o multiple flag (
<input name="myfile[a][b][]"/>
) - [ ] Attachments - Multiple - multi-dimenionsional input name with array w/ multiple flag (
<input name="myfile[a][b][]" multiple/>
) - [ ] Check POST with different content-types (json, x-www-form-urlencode, ..?)
- [ ] Check 204 responses with JSON why they return "{}" instead of ""
- [ ] Cloudfront MAY send multiple list-items for a single header
- [ ] Origin custom - Origin Protocol Policy (Mid prio - I guess there might be use-cases where SSL is not used)
- [ ] Origin custom - Read different path (Low prio - imo not required for lambda)
- [ ] Origin custom - Ssl protocol (Low prio - imo not required for lambda)
- [ ] Origin s3 - Origin Protocol Policy (Mid prio - I guess there might be use-cases where SSL is not used)
- [ ] Origin s3 - Read different path (Low prio - imo not required for lambda)
- [ ] Origin s3 - Restrict Bucket (Low prio - imo not required for lambda)
All versions of cloudfront-edge-php-adapter with dependencies
PHP Build Version
Package Version
No informations.
The package christoph-kluge/cloudfront-edge-php-adapter contains the following files
Loading the files please wait ....