Download the PHP package google/appengine-symfony-starter-project without Composer
On this page you can find all versions of the php package google/appengine-symfony-starter-project. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download google/appengine-symfony-starter-project
More information about google/appengine-symfony-starter-project
Files in google/appengine-symfony-starter-project
Package appengine-symfony-starter-project
Short Description A Symfony hello world for App Engine
License MIT
Homepage https://cloud.google.com/appengine/docs/php/symfony-hello-world
Informations about the package appengine-symfony-starter-project
This project is no longer actively developed or maintained.
Please check out Running Symfony on App Engine for PHP 7.2 instead.
Symfony for Google App Engine
This repository contains a Symfony app for Google App Engine, based off the Symfony Standard Edition.
See How to Run Symfony Hello World on App Engine Standard Environment for the full tutorial.
Installation
Install this via composer. Follow the installation instructions if you do not already have composer installed.
Once composer is installed, execute the following command to create this project:
Set Up
To run the starter app, be sure to authorize gcloud for your project.
Run Locally
Now browse to http://localhost:8080
in your browser to view your running
application. This builds the cache for the "dev" environment and runs the
dev_appserver.py
script, which will be available if you've installed the
Google App Engine Launcher. The command for this is
defined in scripts/deploy.php
.
Deployment
Deploy to your App Engine instance by running the following command:
This builds the cache for the "prod" environment and runs gcloud app deploy
,
which will be available if you've installed the
Google Cloud SDK. The command for this is defined in
scripts/deploy.php
.
See also the Symfony Hello World tutorial
Using Twig
It should be noted this example application uses a subclass of Twig_Environment
,
defined in src/Twig/Environment.php
and configured in app/config/services.yml
.
The reason for this subclass is to customize the getOptionsHash
method. Without
this, the cache cannot be warmed up outside of the PHP version being used in App
Engine.
Troubleshooting
-
If Composer fails to download the dependencies, make sure that your local PHP installation satisfies Composer's system requirements. Specifically, cURL support is required.
- If you see errors about missing the default Cloud Storage bucket, follow the cloud integration instructions to create a default bucket for your project.
Contributing
Have a patch that will benefit this project? Awesome! Follow these steps to have it accepted.
- Please sign our Contributor License Agreement.
- Fork this Git repository and make your changes.
- Create a Pull Request
- Incorporate review feedback to your changes.
- Accepted!
License
All files in this repository are under the MIT License unless noted otherwise.
All versions of appengine-symfony-starter-project with dependencies
symfony/symfony Version 3.3.0
symfony/console Version ^3.2
doctrine/annotations Version ^1.2
sensio/framework-extra-bundle Version ^3.0
sensio/distribution-bundle Version ^5.0
symfony/monolog-bundle Version ^3.1