PHP code example of runtime / bref-layer
1. Go to this page and download the library: Download runtime/bref-layer library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
runtime / bref-layer example snippets
yaml
# serverless.yml
service: appgit init
provider:
name: aws
region: us-east-1
runtime: provided.al2
plugins:
- ./vendor/runtime/bref-layer # <----- Add the extra Serverless plugin
functions:
website:
handler: public/index.php
layers:
- ${runtime-bref:php-82}
events:
- httpApi: '*'