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:
- 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.
- You may need to do verification by SMS.
- Now you need to download the Google App Engine SDK. Download it here. As the prerequisite you need to download Python 2.7.
- After you finished install both Python 2.7 and GAE SDK, now you can open the launcher. See the screenshot below:
- 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.
- 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.
- Now you can open the project folder and update the main.php file as you wish.
- 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:
- 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/
- 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.