Code completion for PHP-GTK in Zend Studio 5.5

Enabling PHP-GTK2 code completion in Zend Studio 5.5 for a project is very simple. The following example is given on Windows, but the steps should be the same on any supported platform.

First run the Gtk_Dumper.php extractor as described on the previous page, and save the generated skeleton file to some stable directory, say e:\src\php\php-gtk\stubs-2.0.1.php for code completion on the PHP-GTK 2.0.1 version.

Now, start Zend Studio...
Starting Zend Studio

Create a new project...
New project in Zend Studio 5.5

Add the path to the just-generated skeleton file using the Add path button...
Adding the code completion stubs file for PHP-GTK

Then click on Finish to create the project. Now let's create a new PHP application
Creating a new PHP-GTK application

Notice that code completion in Zend Studio 5.5 shows the types of parameters (like GtkObject on the example below) and class constants (like the Gtk::BUILDER_ERROR_* constants in the example below):
Code completion in Zend Studio: constants and parameter types