Create Google App Engine For PHP

A couple of months ago Google App Engine announced their support for PHP. And it is the fourth language supported by Google App Engine after Phyton, Java and Go. Now for all the PHP Developer this is a good news, so we could use Google App Engine power for own web applications. So now i would like to share a little bit how to start your own Google App Engine using PHP. And imagine that you can use WordPress or Laravel framework with Google App Engine.

Please follow the step by step below:

  1. Before you begin to use GAE for PHP, you may need to create your Google App Engine account. Create your first project and name it.
    GAE-1
  2. You may need to do verification by SMS.
  3. Now you need to download the Google App Engine SDK. Download it here. As the prerequisite you need to download Python 2.7.
  4. After you finished install both Python 2.7 and GAE SDK, now you can open the launcher. See the screenshot below:
    GAE-2
  5. Now you need to create your application, by go to File > Create New Application. Fill in the details, and remember the application name should be the same with your GAE Project Name. And don’t forget to choose the runtime to PHP instead of Phyton.
  6. Now it is ready for you to run it. Just press run button at the top left corner, and open it on your browser at http://localhost:8080/. You will get your first “Hello World” on the screen.
  7. Now you can open the project folder and update the main.php file as you wish.
  8. Now let’s deploy it to Google App Engine. Just press the button deploy and fill in you Google email and password. When finished you can see like the screenshot below:
    GAE-3
  9. To see your first application on the web you can go to: [your-project-name].appspot.com, as in the example you can visit my first project at http://codemaniac-001.appspot.com/
  10. That’s it

To create your first application on Google App Engine is very easy right? After this i will cover the topic on how to use the database, so you can use WordPress or Laravel on top of the Google App Engine. So i hope this article could jump start your next kick ass project.

Give me your feedback

This site uses Akismet to reduce spam. Learn how your comment data is processed.