This tutorial will provide an introduction to working with PHP 5.4 in Zend Studio.
In this tutorial you will learn:
Throughout the tutorial, you will be provided with code snippets to insert in your project.
Zend Studio 9.0 or above which can be downloaded from the Zend Studio Downloads page. For information on installation, see the Zend Studio Installation Guide.
Zend Developer CloudZend Developer Cloud is a cloud-based environment designed to help you code more quickly and more efficiently. It includes a robust PHP stack, advanced debugging capabilities, collaboration tools and much more. account and an SSH Key.
How do I create a Zend Developer Cloud account
and an SSH Key?
To better understand the procedures described in this tutorial, watch this video:
Your first step will be to install PHP 5.4 Support for Zend Studio.
|
|
|
To install PHP 5.4:
|
For more information on installing and uninstalling plugins, see Customizing Zend Studio Using the Welcome Page. |
You will now create a new local project to work with in this tutorial.
|
To create a new local project:
Note: If Zend Server is not installed on your machine, the project will be created in a Workspace and not the htdocs folder.
|
|
Zend Studio supports PHP 5.4. You will now be introduced to two new features included in this latest PHP release:
Traits
New syntax for creating arrays
|
|
|
To get acquainted with PHP 5.4 features in Zend Studio:
$o = new TheWorldIsNotEnough();
|
Save your project before continuing on to the next steps of this tutorial. |
This step explains how to locally run and debug the application.
|
|
|
To locally run and debug your application:
|
Select the Breakpoints tab and view the set breakpoint. Double-click the breakpoint to locate the bug in the PHP Editor. |
This step demonstrates how Zend Studio integrates with the Zend Developer Cloud by explaining how to take your locally developed and debugged application and deploying it on the cloud.
Before deploying the application on the Zend Developer Cloud, you will need to create a new ContainerThe Container holds your PHP Web application in the Cloud. to hold the application.
Note:
If you already have two containers in your Zend Developer Cloud account, delete a container before creating a new one for this tutorial.
|
|
|
To create a Container:
|
You can access the Zend Developer Cloud by opening Zend Studio's internal Browser. To do this, just click the Browser icon on the tool-bar, and enter the URL address above. |
|
|
|
To deploy your application on the cloud:
|
|
|
|
Related Links:
Building Applications on the Zend Developer Cloud |
|
|
©1999-2013 Zend Technologies LTD. All rights reserved.