php-docs-samples/appengine/php72/front-controller at master · clush/php-docs-samples · GitHub
Skip to content

Latest commit

 

History

History
 
 

README.md

Front Controllers on App Engine Standard for PHP 7.2

This app demonstrates how to implement a simple front controller for legacy projects. The main code sample is in index.php. This is one example of a front controller. See here for more examples:

Setup

Deploy

Run Locally

You can run the sample locally using PHP's build-in web server:

# Run PHP's built-in web server
php -S localhost:8000

Browse to localhost:8000 to see a list of examples to execute.

Deploy with gcloud

Deploy the samples by doing the following:

gcloud config set project YOUR_PROJECT_ID
gcloud app deploy
gcloud app browse

The last command will open https://{YOUR_PROJECT_ID}.appspot.com/ in your browser. Browse to / to see a list of examples to execute.