Skip to content

Commit f93d3b1

Browse files
graysidebshaffer
authored andcommitted
AppEngine PHP 7.2 sample updates (GoogleCloudPlatform#643)
1 parent 1c7612e commit f93d3b1

File tree

18 files changed

+282
-140
lines changed

18 files changed

+282
-140
lines changed

appengine/php72/auth/app.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
runtime: php72
22

3-
handlers:
4-
- url: /
5-
script: index.php
3+
# Defaults to "serve index.php" and "serve public/index.php". Can be used to
4+
# serve a custom PHP front controller (e.g. "serve backend/index.php") or to
5+
# run a long-running PHP script as a worker process (e.g. "php worker.php").
6+
#
7+
# entrypoint: serve index.php

appengine/php72/cloudsql/.gcloudignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@
1515

1616
# PHP Composer dependencies:
1717
vendor/
18+
composer.json
19+
composer.lock

appengine/php72/cloudsql/app-postgres.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33

44
runtime: php72
55

6+
# Defaults to "serve index.php" and "serve public/index.php". Can be used to
7+
# serve a custom PHP front controller (e.g. "serve backend/index.php") or to
8+
# run a long-running PHP script as a worker process (e.g. "php worker.php").
9+
#
10+
# entrypoint: serve index.php
11+
612
# [START gae_cloudsql_postgres_env]
713
env_variables:
814
# Replace USER, PASSWORD, DATABASE, and CONNECTION_NAME with the

appengine/php72/cloudsql/app.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33

44
runtime: php72
55

6+
# Defaults to "serve index.php" and "serve public/index.php". Can be used to
7+
# serve a custom PHP front controller (e.g. "serve backend/index.php") or to
8+
# run a long-running PHP script as a worker process (e.g. "php worker.php").
9+
#
10+
# entrypoint: serve index.php
11+
612
# [START gae_cloudsql_mysql_env]
713
env_variables:
814
# Replace USER, PASSWORD, DATABASE, and CONNECTION_NAME with the
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
runtime: php72
22

3-
handlers:
4-
- url: /
5-
script: index.php
3+
# Defaults to "serve index.php" and "serve public/index.php". Can be used to
4+
# serve a custom PHP front controller (e.g. "serve backend/index.php") or to
5+
# run a long-running PHP script as a worker process (e.g. "php worker.php").
6+
#
7+
# entrypoint: serve index.php

appengine/php72/grpc/.gcloudignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@
1414
.gitignore
1515

1616
# PHP Composer dependencies:
17-
# vendor/
17+
# vendor/
18+
composer.*

appengine/php72/grpc/app.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
runtime: php72
2+
instance_class: F2
23

34
handlers:
45
- url: /
5-
script: index.php
6+
script: auto
67

7-
- url: /(monitoring|spanner)\.php
8-
script: \1.php
8+
- url: /(monitoring|spanner|speech)\.php
9+
script: auto

appengine/php72/grpc/audio32KHz.raw

162 KB
Binary file not shown.

appengine/php72/grpc/composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"require": {
3-
"google/cloud-spanner": "^1.5",
4-
"google/cloud-monitoring": "^0.10"
3+
"google/cloud-spanner": "^1.6",
4+
"google/cloud-monitoring": "^0.11",
5+
"google/cloud-speech": "^0.15"
56
},
67
"require-dev": {
78
"google/cloud-tools": "^0.6.7",

0 commit comments

Comments
 (0)