Quick Start

Zend Technologies is happy to release an Eclipse based version of the traditional Zend Studio.

The following Quick Start page will help newcomers and (even) our veteran users familiarize themselves with this new version.

The Features covered in the Quick Start are:

Getting Started

PHPUnit

Workbench

Source Control

Creating a PHP Project

Refactoring

Creating a PHP File

Perspectives of Interest

PHP Debugging

 

 

 

Getting Started

Before launching, Studio will ask you to select a Workspace where all projects will be created and stored.

You can use the default Workspace suggested or click Browse to select a different Workspace.

See the Workbench User Guide for more on Workspaces.

 

When Studio is first launched, a Welcome Page will open containing links to actions and tutorials to help you get started with Studio, as well as information on Studio's features and functionality.

To start using Studio, close the Welcome Page by clicking the X icon in the Welcome tab in the top-left corner.

Back to Top

Workbench

The Workbench is a window displaying perspectives, views and menu bars through which different operations can be performed.

See the Workbench User Guide for more on how to customize your Workbench.

Back to Top

Creating a PHP Project

A project is a group of files and resources which will be displayed in a tree in the Navigator and PHP Explorer views.

 

 

Instructions on how to complete a procedure

To create a new PHP project:

Go to the Menu Bar and select File | New | PHP Project.

-Or- In the PHP Explorer View, right-click and select New | PHP Project.

New Project Wizard Note:  

Leaving the 'Use Default' checkbox under the Project contents category selected will create a default library within the workspace, with the project name. Not using the default will allow you to add the contents to the directory of your choice, provided you have already created a directory before starting. (Recommended to prevent current project files from being stored with other project files).

Back to Top

Creating a PHP File

 

 

Instructions on how to complete a procedure

To create a new PHP file:

Go to the Menu Bar and select File | New | PHP File.

-Or- In PHP Explorer view, right-click the folder in which you would like to create your file and select New | PHP File

-Or- Click the New PHP File icon on the toolbar . This will create a file outside of a project.

See Easy File Creation for more information.

Back to Top

PHP Debugging

The Zend Debugger detects and diagnoses errors in PHP code situated on local or remote servers:

 

 

Instructions on how to complete a procedure

To debug a PHP script situated on your workspace:

  1. Set breakpoints at the relevant locations in your script by double-clicking the marker bar to the left of the relevant line. A blue ball will appear to indicate that a breakpoint has been set.

  2. Go to the main menu and select Run | Open Debug Dialog -or- right-click the file in PHP Explorer view and select Debug As | Open Debug Dialog.

  3. To create a new configuration, double-click the 'PHP Script' category.

  4. Under the Debugger Location category, choose whether you want to debug locally using the internal debugger (PHP executable) or remotely using your server's debugger (PHP Web Server).

  5. Enter all other information and click Apply and Debug.

 

 

 

Instructions on how to complete a procedure

To debug a PHP Web page situated on a server:

  1. Go to the main menu and select Run | Open Debug Dialog -or- right-click the file in PHP Explorer view and select Debug As | Open Debug Dialog.

  2. To create a new configuration, double-click the 'PHP Web Page' category.

  3. Enter the required information and click Apply and Debug.

 

Debugging Preferences can be configured from the Debug Preferences page, which can be accessed from Window | Preferences | PHP | Debug.

See the Debugging topic for more on Debugging.

Back to Top

Source Control

Studio includes a built-in component for CVS (Concurrent Versions System) and SVN (Subversion).

Before accessing a repository, make sure that a CVS or SVN server is already configured on the host machine.

 

 

Instructions on how to complete a procedure

To configure access to a repository through Studio:

  1. On the main menu go to Window | Show View | Other.

  2. Select either CVS or SVN repositories.

  3. From the CVS/SVN view toolbar, select the Add CVS / SVN Repository button.

  4. Fill in the location and authentication details and press Finish.
    CVS / SVN functionality can then be accessed by right-clicking on or within the relevant file or project and selecting Team, Compare with, Replace with, or Source.

 

See the CVS or SVN topics for more information,

Back to Top

PHPUnit

A PHPUnit is a testing framework to write and run tests on PHP code. A test file can be created for each class, function and file. PHPUnits allow PHP developers to incrementally build test suites to constantly review progress and detect unintended side effects.

 

 

Instructions on how to complete a procedure

To create and run a PHPUnit Test Case:

  1. In PHP Explorer view, right-click the file you want to test and select New | PHP Unit Test Case.

  2. Fill in the required information in the New PHPUnit Test Case dialog.

  3. Click Finish to create your Test Case file.

  4. Edit the test functions in your new PHPUnit Test Case file by writing appropriate tests for the relevant functions.

  5. Run the PHPUnit Test by going to Run | Run As | PHPUnit from the Menu Bar -or- right-clicking the file in PHP Explorer view and selecting Run As | PHPUnit.

 

See PHPUnit Testing for more information.

Back to Top

Refactoring

Refactoring is the process of renaming or moving selected resources in a 'smart' way while maintaining all the relevant links between files and elements. Refactoring automatically makes all relevant changes to your code.

 

 

Instructions on how to complete a procedure

To move / rename a resource:

  1. Select the required file in PHP Explorer view -or- select the required element in the editor window.

  2. Right-click and select Refactor | Move (files only) / Rename.

  3. Select the resource's new location / name.

During the refactoring process, a preview screen will display showing the changes made.

See the Refactoring topic for more information.

Back to Top

Perspectives of Interest

To open a perspective go to Window | Open Perspective, select "Other" to view a full list of perspectives.

See PHP Perspectives and Views for more information.

Back to Top

 

 

Related Links

Related Links:

Using the Debugger

Using PHPUnit Testing

CVS

SVN

Refactoring