Quick Start

In this Topic Hide

Getting Started

Workbench

Workspaces

Creating a PHP Project

Creating a PHP File

PHP Debugging

Remote Server Support

Source Control

PHPUnit

 Refactoring

Perspectives of Interest

 

The Quick Start page will help newcomers and (even) our veteran users familiarize themselves with this new version. See above for a list of the features covered in this page.

Getting Started

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

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

Back to Top

Workbench

The Workbench is a window that displays Perspectives, Views and menu bars through which different operations can be performed.

See the Workbench topic in the Workbench User Guide for more on using and customizing the Workbench.

Note:

Additional user guides can be accessed from inside Zend Studio by going to Help | Help Contents, or from the Eclipse Online Documentation site (http://help.eclipse.org/helios/index.jsp).

Back to Top

Workspaces

Workspaces are the files system location where all your projects are created and stored.

You can use the default Workspace created by Zend Studio or from the menu bar go to File | Switch Workspace | Other to select a different Workspace.

Creating a PHP Project

A project is a group of files and resources which are displayed in a tree in the PHP Explorer view.

 

 

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.

See Creating PHP Projects for more information.

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 want to create your file and select New | PHP File

-Or- click the New PHP File icon on the toolbar new_php_file.png. This creates a file outside of a project.

See Creating PHP Files 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 (located at the left of the editor area) at the relevant line. A blue ball appears to indicate that a breakpoint is set.

  2. From the main menu, 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. From the main menu, 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 Debugging for more information.

Back to Top

Remote Server Support

RSS (Remote Server Support) provides transparent access to remote resources, including the upload and download of files.

  1. To configure a new connection, go to Project | Properties | Remote Server Support and click Manage and then Add.

  2. Use the New Remote System Connection dialog to define your settings and save by clicking Finish.

To learn more about working with RSS, see Remote Server Support.

Back to Top

Source Control

Zend 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 Zend 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 CVS or SVN 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 Refactoring 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

 

 

link_icon.png

Related Links:

Using the Debugger

Using PHPUnit Testing

CVS

SVN

Refactoring

Remote Server Explorer