Preparing to Develop a Google App for PHP Application
PhpStorm takes care of creating the specific directory structure and settings. PhpStorm can either generate a Google App Engine for PHP-specific project stub or you can enable support of Google App Engine for PHP in an existing project.
- Before You Start
- Creating a Google App Engine for PHP Application Project Stub
- Activating the Google App Engine Support in an Existing Project
Before You Start
- Download and install Python, version 2.7.
- Download and install the Google App Engine for PHP.
- Make sure the Google App Engine Support for PHP plugin is enabled. The plugin is bundled with PhpStorm and activated by default. If the plugin is not activated, enable it on the Plugins page of the Settings / Preferences Dialog as described in Enabling and Disabling Plugins.
- Create a Google account at http://www.google.com.
- Create an application on the Create application page of the Google App Engine and remember its application ID, you will have to specify it during the creation of a project.
Creating a Google App Engine for PHP Application Project Stub
- Choose New Project button on the Welcome screen. The Create New Project: Select Project Type dialog box opens. on the main menu or click the
- In the Create New Project dialog box that opens, specify the name of the project and the folder where the project will be located. From the Project Type drop-down list, choose App Engine Project and click OK.
In the App Engine Project dialog box that opens, specify the following:
- In the Application ID text box, type the identifier of your application as you specified it on the Create application page.
- In the SDK directory test box, specify the path to the folder where the Google App Engine SDK for PHP is installed.
- The location of the Python executable file. Type the path manually in the Python executable text box or click the Browse button and choose the Python executable in the dialog box that opens.
PhpStorm creates a project with the
and the app.yaml configuration file.
app.yaml file contains the generated settings for
the runtime (should be
the application version (by default is 1),
the threadsafe element
with the value
true to enable sending multiple, parallel requests,
and the Script handlers
script (with the value
Activating the Google App Engine Support in an Existing Project
- Open the Settings / Preferences Dialog by choosing for Windows and Unix or for OS X. Expand the Languages&Frameworks node, and then click Google App Engine for PHP under PHP.
On the Google App Engine for PHP page that opens,
select the Enable Google App Engine for PHP support check box and specify the following:
- The folder where the Google App Engine for PHP SDK is stored.
- The path to the Python 2.7 executable file.
- In the App Engine Account Settings area, choose the way to authenticate to the development server, the available options are: