Skip to content

Commit c5fd4cd

Browse files
committed
Release new layer versions
7.3: 1 7.1: 8
1 parent 26222e9 commit c5fd4cd

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

README.md

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
# PHP Layer For AWS Lambda
22

3-
Ever wanted to run PHP websites in AWS Lambda? It's your lucky day! This Lambda Runtime Layer runs the [PHP 7.1/7.2/7.3 webserver](http://php.net/manual/en/features.commandline.webserver.php) in response to [AWS API Gateway](https://aws.amazon.com/api-gateway/) or [AWS Application Load Balancer](https://aws.amazon.com/elasticloadbalancing/features/#Details_for_Elastic_Load_Balancing_Products) requests.
3+
Ever wanted to run PHP websites in AWS Lambda? It's your lucky day! This Lambda Runtime Layer runs the [PHP 7.3/7.1 webserver](http://php.net/manual/en/features.commandline.webserver.php) in response to [AWS API Gateway](https://aws.amazon.com/api-gateway/) or [AWS Application Load Balancer](https://aws.amazon.com/elasticloadbalancing/features/#Details_for_Elastic_Load_Balancing_Products) requests.
44

55
And, if you're looking for a great way to build serverless apps of all kinds, be sure to check out [Stackery](https://stackery.io)!
66

77
This is an early iteration of the PHP runtime Layer which is not yet ready for production. Please feel free to use this Layer to learn about the Lambda Layers feature and begin experimenting with PHP functions. We welcome feedback and stay tuned for the production-ready version coming soon.
88

99
## Current Layer Version ARN
10-
When creating/updating a Lambda function you must specify a specific version of the layer. This readme will be kept up to date with the latest version available. The latest available Lambda Layer Version ARN for PHP 7.1 is:
10+
When creating/updating a Lambda function you must specify a specific version of the layer. This readme will be kept up to date with the latest version available. The latest available Lambda Layer Version ARNs for PHP 7.3 and 7.1 are:
1111

12-
**arn:aws:lambda:\<region\>:887080169480:layer:php71:7**
12+
**arn:aws:lambda:\<region\>:887080169480:layer:php73:1**
13+
**arn:aws:lambda:\<region\>:887080169480:layer:php71:8**
1314

1415
See [Releases](https://github.com/stackery/php-lambda-layer/releases) for release notes.
1516

@@ -30,7 +31,7 @@ There are three locations where PHP configuration may be located:
3031
* Files in function code package located under /php-${PHP_VERSION}.d/
3132
* php.ini located at the root of the function code package
3233

33-
Replace ${PHP_VERSION} with '7.1', '7.2', or '7.3' according to your preferred runtime.
34+
Replace ${PHP_VERSION} with '7.3', or '7.1' according to your preferred runtime.
3435

3536
##### Extensions
3637
The following extensions are built into the layer and available in /opt/lib/php/${PHP_VERSION}/modules:
@@ -103,7 +104,7 @@ Resources:
103104
Timeout: 30
104105
Tracing: Active
105106
Layers:
106-
- !Sub arn:aws:lambda:${AWS::Region}:887080169480:layer:php71:7
107+
- !Sub arn:aws:lambda:${AWS::Region}:887080169480:layer:php73:1
107108
Events:
108109
api:
109110
Type: Api
@@ -144,24 +145,22 @@ $ sam deploy \
144145
```
145146

146147
### Development
147-
Build the layer by:
148+
Build the layers by:
148149

149150
1. Installing a Docker environment
150151
1. Running `make`
151152

152-
This will launch a Docker container that will build php71.zip.
153-
154-
You can run `make php72.zip` and `make php73.zip` to create a layer that is based on PHP 7.2/7.3.
153+
This will launch Docker containers that will build php73.zip and php71.zip.
155154

156155
If you are behind a proxy server, just set the environment variable `http_proxy` before
157156
invoking `make`, eg.:
158157

159158
```sh
160-
$ export http_proyx=http://myproxy.acme.com:8080
159+
$ export http_proxy=http://myproxy.acme.com:8080
161160
$ make php73.zip
162161
```
163162

164-
### Debugging
163+
#### Debugging Layer Builds
165164

166165
Run:
167166

@@ -175,7 +174,7 @@ If you are on Windows, run this instead:
175174
> docker run --rm -it -v %cd%:/opt/layer lambci/lambda:build-nodejs8.10 /bin/bash
176175
```
177176

178-
and execute manually the commands in the build.sh file.
177+
then manually execute the commands in the build.sh file.
179178

180179
### Disclaimer
181180

0 commit comments

Comments
 (0)