Skip to content

Commit e97b51c

Browse files
authored
Adds App Engine PHP 72 getting started sample (GoogleCloudPlatform#655)
1 parent 6727647 commit e97b51c

File tree

18 files changed

+3972
-0
lines changed

18 files changed

+3972
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# This file specifies files that are *not* uploaded to Google Cloud Platform
2+
# using gcloud. It follows the same syntax as .gitignore, with the addition of
3+
# "#!include" directives (which insert the entries of the given .gitignore-style
4+
# file at that point).
5+
#
6+
# For more information, run:
7+
# $ gcloud topic gcloudignore
8+
#
9+
.gcloudignore
10+
# If you would like to upload your .git directory, .gitignore file or files
11+
# from your .gitignore file, remove the corresponding line
12+
# below:
13+
.git
14+
.gitignore
15+
16+
# PHP Composer dependencies:
17+
vendor/
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Getting Started on App Engine for PHP 7.2
2+
3+
This application is meant to help run a small PHP application which integrates with Cloud SQL and Cloud Storage on App Engine Standard for PHP 7.2. The tutorial uses the Slim framework.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# See https://cloud.google.com/appengine/docs/standard/php/config/appref for a
2+
# complete list of `app.yaml` directives.
3+
4+
runtime: php72
5+
instance_class: F2
6+
7+
env_variables:
8+
GOOGLE_BUCKET_NAME: ""
9+
# populate these to use the "mysql" or "postres" backends
10+
CLOUDSQL_CONNECTION_NAME: ""
11+
CLOUDSQL_USER: ""
12+
CLOUDSQL_PASSWORD: ""
13+
## Uncomment to give your database a name other than "bookshelf"
14+
# CLOUDSQL_DATABASE_NAME: ""
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"require": {
3+
"google/cloud-storage": "^1.6",
4+
"slim/slim": "^3.0",
5+
"slim/twig-view": "^2.4"
6+
},
7+
"autoload": {
8+
"psr-4": {
9+
"Google\\Cloud\\Samples\\AppEngine\\GettingStarted\\": "src"
10+
}
11+
},
12+
"require-dev": {
13+
"phpunit/phpunit": "^5",
14+
"google/cloud-tools": "^0.8.0"
15+
}
16+
}

0 commit comments

Comments
 (0)