Aptana PHP Plug-In 1.1 [edit]

Contents

Overview

Aptana PHP 1.1 Alpha release is out!
This version introduces several new features, along with plenty of bug fixes.
This page provides an overview on the latest additions

Requirements

Minimum Aptana Studio requirements: Aptana Studio 1.2.6 or Aptana Studio Andretti release

Installing

The plug-in is provided as an update site through http://beta.aptana.com/beta/php/3.2/ for the Studio 1.2.6 users. However, it is already offered for you when you install the Studio Andretti.

In case you have the Andretti release, open the Plugin Manager and select the PHP plugin to install.

In case you have Studio 1.2.6, follow these instructions:
Installation on Aptana Studio standalone

  1. From the Help menu, select Software Updates > Find and Install... to open an Install/Update pop-up window.
  2. On the Install/Update pop-up window, choose the Search for new features to install option, and click the Next button.
  3. Set up a new remote site to scan for updates.
    1. Click the New Remote Site... button to open a New Update Site pop-up window.
    2. On the New Update Site pop-up window, type the name of the new plug-in in the site Name text box.
    3. In the URL text box, type the URL http://beta.aptana.com/beta/php/3.2/ for the update site.
    4. Click OK.
    5. Click the Finish button to open an Updates window.
  4. On the Updates window, check the box next to the name of the plug-in, and click the Next button.
  5. Choose the option to accept the terms of the license agreement, and click the Next button.
  6. Click the Finish button.
  7. Click the Install All button.

Installation on Aptana Studio plugin on Eclipse 3.4.x

  1. From the Help menu, select Software Updates... to open the software updates dialog.
  2. Click the Available Software tab.
  3. Set up a new site to scan for updates.
    1. Click the Add Site... button to open a new Site pop-up window.
    2. On the new Site pop-up window, type the URL http://beta.aptana.com/beta/php/3.2/
    3. Click OK. You should see the PHP update site in the Available Software tab.
    4. Mark its check-box and click the Install button located on the top-right corner.
    5. Follow the installation instructions as appear after that.

New Code Formatter

We've replaced the code formatter engine with a new and improved one, providing dozens of new formatting options.

Image:Formatter.gif

Path Mapping for Remote Debugging

Along with a few other debugger improvements, we've enhanced the PHP remote debugger with path-mapping capabilities. This enhancement should resolve most of the mapping issues that were exist in the previous debugger infrastructure.

Image:PhpPathMapping.gif

New Smarty Support

A new Smarty Template Engine support was added to this release. Follow this link to discover what was added and how to use it.

Image:SmartyHighlighting.jpg

More Smarty features here...

Type Hierarchy Viewer

The type hierarchy viewer is actually a set of views that can be accessible from the application menu and from the editor to provide a clear view of the class/interface hierarchy structure.

Clicking on a type in the editor and then selecting Navigate | Type Hierarchy from the application menu, will open the Type Hierarchy View.
The view displays the hierarchy for the type and allows you to toggle to the 'Super-Type' and the 'Sub-Types' hierarchies.
The bottom part of this view displays the selected type functions and fields.

Image:PhpTypeHierarchyView.jpg

The second view in this set of type hierarchy views allows you to select any type that is accessible in your workspace for a view in the Type Hierarchy.
Select Navigate | Open Type in Hierarchy option to display the dialog for the type selection. The selected type will appear in the hierarchy.
You can also open this view by clicking the Image:PhpTypeHierarchyButton.jpg button on the toolbar, or by typing Ctrl+Shift+H.

Image:PhpOpenTypeInHierarchy.jpg

The third view is available through the editor: Click on the type that you wish to view and then type Ctrl+T (or click Navigate | Quick Type Hierarchy).
You can also toggle between the different tree views (just as with the Type Hierarchy View) by clicking the Ctrl+T again.

Image:PhpQuickTypeHierarchy.jpg

PHP Elements View

The PHP elements view provides a quick and enhanced view for all the PHP elements that are available in your workspace.
The view displays the elements by project, and is also capable of displaying elements that were added as PHP libraries in the workspace, and elements that are available in the PHP API.

Image:PhpElementsView.jpg

The view also allows to filter the elements that are visible in the tree by typing into the 'Filter' field.


Image:PhpElementsViewFilter.jpg

Mark Occurrences

Note: This feature is supported on Aptana Studio 1.2.6 and above.
Clicking on a variable, method, or type will mark all the referenced of this type in the edited script. The usages of that variable, method or type will be highlighted in a gray color, while the assignments for that variable will be marked in an orange color.

It's possible the toggle on and off the "Mark Occurrences" by clicking the toolbar button (Image:MarkOccurrencesToolbar.jpg), or by typing Alt+Shift+O.

Image:PhpMarkOccurrences.jpg

Override Indicators

The override indicators addition to the annotation bar provides a very powerful indication for any function definition in a class that is overriding or implementing a function from the class's hierarchy.

Image:PhpOverrideIndicators.jpg


XAMPP Integration

The XAMPP integration allows adding an existing XAMPP installation as a PHP server. If you wish to do so, the added XAMPP will be patched to work with the remote debugger automatically.

Image:PhpXamppWizard.gif