Android2012.06.07 10:42

With the rise of mobile applications for smart phones, working with an IDE that's versatile is important.

We all know that Eclipse works great with java, but I have always wanted to use it with PHP and more importantly for developing with Drupal. I've tried so many times to get it to work in the past with something always not working right. I finally have figured out a nice smooth setup for using PHP, Eclipse, and Remote System Explorer, and Drupal. Also with an added bonus of the Theme Manager plugin.

One of the challeges that I faced was that I sometimes want to do work on remote servers and I never knew how to do that with Eclipse. Remote System Explorer plugin was the answer to that. It's a very nice plugin once you get use to it. You can have multiple connections setup to multiple servers and easily navigate all of them at once. Remote System also allows you to browse the local file system. Remote System basically lets you break out of the Eclipse 'project' mentality and use it more as a hgh powered text editor. 

Alright well on to the tutorial. Please follow these step by step instruction to get it all working. Should only take about 10mins to set it up.

I set this up on Mac OSX 10.6, but this setup should work for windows and linux as well. If you have trouble on windows or linux, please leave a comment and I will investigate.

Step 1: Download and Install Eclipse

Go to and download 'Eclipse Classic' (Don't download Eclipse PHP package), at the time of writing this Indigo (3.7) was the most current release.

Once downloaded, un tar ball/unzip and install Eclipse.

Next start up eclipse and choose your workspace folder.

Step 2: Settings up PHP PDT Plugin

Alright once you have Eclipse up and running, your going to want to navigate to 'Help > Install New Software'. 

This will bring you to a screen like so 

If you look twords the top of that window you will see a drop down that says 'Wok With', click that and select '--All Available Sites--'.

Next you are going to want to search for 'PHP', this will list the same plugin in three different categories. Just select the first one that says 'PHP Development Tools (PDT)...' and then click 'Next' and run though the install process. Its is pretty straight forward. It will ask you to restart Eclipse click 'Restart Now'. Thats it you now have the PHP PDT plugin installed. This plugin by its self is not super useful because of the way the it is encased in Exlipses 'project' mentality.

From here on out when ever I say go and install new software, you should follow these steps.

Step 3: Install Remote System

You are going to follow the same instruction as above, but you are going to search for 'Remote System', remeber to select '--All Available Sites--' in the 'work with' drop down. Click 'Remote System Explorer End-User Runtime' and 'Remote System Explorer User Actions' and run through the install process like before.


Step 4: Install Theme Switcher (Optional)

The setup for the theme switch is same as the above EXCEPT next to the 'work with' drop down you will see a 'add' button, click that. Fill out the form and enter this as the 'Location':

click ok, and in the list of available plugins to install you should only see one choice 'Eclipse Color Theme'. Check the box and run through the install process, it may give you a warning about installing software from outside sources, just click ok and continue.

Once Eclipse Theme is install you can navigate to Ecplise Preference, on mac they are in 'Eclipse > Preferences', on windows I think they are in 'File > Preferences'.

This will open a window with tons of options. All I want you to be aware of at this point is under 'General > Appearance > Color Theme'. This was added by the theme plugin. Here you can change your theme to what ever you prefer.


Step 5: Install Drupal plugin (Optional)

I work a lot with the content management system Drupal and thought it would be nice to note that there is an Drupal Eclipse Plugin.

To install the plugin it is going to be similar to the theme plugin above. Navigate to 'Help > Install New Software' and add a new site like above and enter the location as:

Again after adding this new location you will be prompted with only once choice. Just select 'Drupal for Eclipse' and run though the setup.


Step 6: Configuring PHP

By defualt in Eclipse 3.7 and greater php file will not automatically open in Eclipse. 

Go to 'Eclipse >Preferences' (Mac) or 'File > Preferences'(Windows) and then go to 'general > editors > file associations'. 

click the add button on the left and enter '*.php' with out the quotes. 



Posted by 세계유목민