PHP Eclipse

Edit, run, test, debug and deploy PHP applications.

Download PHP Eclipse 1.1.9.CVS-20060920 for EasyEclipse 1.2.2:

(12MB)  (12MB)  (12MB)

PHPeclipse is a complete development tool for PHP, with support for editing (including formatting and beautifying code, syntax completion, and more), navigating through code outline, code templates, running and debugging. Although the complete configuration requires some work because of the variety of the tools to install, it is worth the work.

There are currently 12 comments for this plugin. You can review them and add more here.

Installing this plugin

This plugin is in the EasyEclipse for LAMP and EasyEclipse for PHP distributions.

You can also install it on any EasyEclipse distribution, because it has no dependencies.

To use this plugin, you need XAMPP: Recommended Apache, PHP, Perl and MySQL distribution and installer.

Getting started

Help is available for this plugin, in the Help > Help Contents menu in EasyEclipse.

To start with PHPEclipse, you must at least install the Apache web server (1.3 or 2.0), and PHP (4.4.2, 5.1.2 or more recent). If you do not have any of them, it is probably easier to install XAMPP (see the Requirements section below).

Then, you will find short introduction on setting up a project and running it in this discussion thread.

To use the debugger, you must add the DBG Debugger to your PHP installation. Get it from its download page. You only need the server-side component ("dbg modules for php"). Note that the DBG Debugger is not available for MacOS in binary form: you will have to compile it yourself for your machine. Clear instructions are available on this thread.

Useful links

Changelog

Changes in EasyEclipse 1.2.1:

Changes in EasyEclipse 1.0.0:

Credits and License

Credits: PHPeclipse team, Ali Echihabi, Axel C. Kramer, Axel Walsleben, Bananeweizen, Bastien Durel, Biju Gopinath, Blake Watters, Chris Hubbard, Christian Perkonig, David Cummings, David Goodlad, Fernando Vicente, Florian Gerlach, greenboxx, Le Borgne Cedric, Matthieu Casanova, Michael Becker, Michael Huettemann, Oliver Trosien, Philippe Lachaise, Ralf Eggert, Renee Dekenah, Robert Kraske, Russell Wilson, Sam Joseph, Sf_nimrod, Stefan Langer, Stefan Sigurdsson, Thomas Geiger, Thorsten Jungblut, will bird

Copyright (c) PHPECLIPSE team.

This plugin is licensed under the Common Public License 1.0 license.

         PHPeclipse.de Software User Agreement
        
        15th June, 2004
        Usage Of Content
        
        PHPECLIPSE.DE MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR OTHER MATERIALS FOR OPEN SOURCE PROJECTS (COLLECTIVELY "CONTENT"). USE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS AGREEMENT AND/OR THE TERMS AND CONDITIONS OF LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW. BY USING THE CONTENT, YOU AGREE THAT YOUR USE OF THE CONTENT IS GOVERNED BY THIS AGREEMENT AND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW. IF YOU DO NOT AGREE TO THE TERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW, THEN YOU MAY NOT USE THE CONTENT.
        Applicable Licenses
        
        Unless otherwise indicated, all Content made available by PHPeclipse.de is provided to you under the terms and conditions of the Common Public License Version 1.0 ("CPL"). A copy of the CPL is provided with this Content and is also available at http://www.eclipse.org/legal/cpl-v10.html. For purposes of the CPL, "Program" will mean the Content.
        
        Content includes, but is not limited to, source code, object code, documentation and other files maintained in the PHPeclipse.de CVS repository ("Repository") in CVS modules ("Modules") and made available as downloadable archives ("Downloads").
        
        Content may be apportioned into plugins ("plugins"), plugin fragments ("Fragments"), and features ("Features"). A Feature is a bundle of one or more plugins and/or Fragments and associated material. Files named "feature.xml" may contain a list of the names and version numbers of the plugins and/or Fragments associated with a Feature. plugins and Fragments are located in directories named "plugins" and Features are located in directories named "features".
        
        Features may also include other Features ("Included Features"). Files named "feature.xml" may contain a list of the names and version numbers of Included Features.
        
        The terms and conditions governing plugins and Fragments should be contained in files named "about.html" ("Abouts"). The terms and conditions governing Features and Included Features should be contained in files named "license.html" ("Feature Licenses"). Abouts and Feature Licenses may be located in any directory of a Download or Module including, but not limited to the following locations:
        
        * The top-level (root) directory
        * plugin and Fragment directories
        * Subdirectories of the directory named "src" of certain plugins
        * Feature directories
        
        Note: if a Feature made available by PHPeclipse.de is installed using the Eclipse Update Manager, you must agree to a license ("Feature Update License") during the installation process. If the Feature contains Included Features, the Feature Update License should either provide you with the terms and conditions governing the Included Features or inform you where you can locate them. Feature Update Licenses may be found in the "license" property of files named "feature.properties". Such Abouts, Feature Licenses and Feature Update Licenses contain the terms and conditions (or references to such terms and conditions) that govern your use of the associated Content in that directory.
        
        THE ABOUTS, FEATURE LICENSES AND FEATURE UPDATE LICENSES MAY REFER TO THE CPL OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS. SOME OF THESE OTHER LICENSE AGREEMENTS MAY INCLUDE (BUT ARE NOT LIMITED TO):
        
        * Eclipse Public License Version 1.0 (available at http://www.eclipse.org/legal/epl-v10.html)
        * Apache Software License 1.1 (available at http://www.apache.org/licenses/LICENSE)
        * IBM Public License 1.0 (available at http://oss.software.ibm.com/developerworks/opensource/license10.html)
        * Metro Link Public License 1.00 (available at http://www.opengroup.org/openmotif/supporters/metrolink/license.html)
        * Mozilla Public License Version 1.1 (available at http://www.mozilla.org/MPL/MPL-1.1.html)
        
        IT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR TO USE OF THE CONTENT. If no About, Feature License or Feature Update License is provided, please contact PHPeclipse.de to determine what terms and conditions govern that particular Content.
        Cryptography
        
        Content may contain encryption software. The country in which you are currently may have restrictions on the import, possession, and use, and/or re-export to another country, of encryption software. BEFORE using any encryption software, please check the country's laws, regulations and policies concerning the import, possession, or use, and re-export of encryption software, to see if this is permitted.
        
        
        
        
    

12 Comments »

Comment by Ayvind Binde
2006-11-27 15:04:25

Ok, who uses the xampp button in the IDE? Yeah, tought so(almost no one at all). hehe. The solution is making sudo /opt/lampp/lampp start availble for the user by installing xampp at

tar xvzf xampp.1.X.X.tar.gz -C ~/

This way we would not require root permissions to start/stop/restart xampp. Xampp being installed at /opt is a security issue it selves, so we would eliminate that one to.
Now, the new command would be:
/home//lampp/lampp start and we could make use of the xampp button.

pombreda also pointed out that it would be necessery to use port 1024 and above to start apache without root privileges. The necessary configrations of xampp could problably be done trough a configXamppForEclipse.sh -script
*thank you pombreda* ;)

If all this is not be done, then it would be a good point to get rid of the xampp buttons(in the IDE) for linux by default. Since people think: Hey, I can setup XAMPP. COOL!….and then get reallty dissapointed.

Just my to cents :)
morphir

Comment by Volker
2007-01-13 08:34:48

Hi morphir and everybody else,

You may also start XAMPP from within Eclipse as a “normal” user, allthough it is configured to be run only with root privileges. All you need is again the sudo package and two selfmade “wrapper” shell scripts.

Notes:
- My lampp executable resides in /opt/lampp, so it’s full name is /opt/lampp/lampp.
- Make sure you have /bin/sh available on your system (symlink from /bin/sh to /bin/bash if not)

1. Setting up the shell scripts:
Create the following two files with your editor:

start_lampp

#!/bin/sh
sudo /opt/lampp/lampp start

stop_lampp

#!/bin/sh
sudo /opt/lampp/lampp stop

Place the two files in a folder of your choice and make them executable by you.

2. PHPEclipse setup:

Navigate to Menubar –> Window –> Preferences
Choose PHPEclipse Web Development –> PHP External –> XAMPP

Enter the following information:
XAMPP start: /Path_2_startlampp/start_lampp
XAMPP stop: /Path_2_stoplampp/stop_lampp

3. Usage:

Click on the Xampp start button in PHPEclipse.
- A Eclipse ‘Console’ window should be visible (lower border of Eclipse, the one with the little monitor symbol)
- Within the console window the phrase ‘Password:’ is visible.
- Simply enter your lampp password and hit
- The startup / shutdown output of XAMPP should be visible in the Console-Window
- Stopping XAMPP works the same way.

The solution should also work with wrapper scripts to apachectl and other stuff - but I didn’t give it a try yet.
Hope this was usefull for anybody,

Volker

Comment by Daniel
2007-02-10 16:09:45

Hi,

I have done all of your instruction, but still didn’t work. I am using EasyEclipse LAMP in Ubuntu, is there any other things I need to do? Up till instrunction no 2, it works. But when i clicked xampp start button, nothinh happened.

thx,

Daniel

Comment by Dexter-rbm
2007-03-02 11:16:43

Hi,
Got the same problem as Daniel, I also followed Volker’s instructions, but, with same results.
The way that it worked for me: go to the place where you have placed the start_lampp and stop_lampp scripts.
Do right click on files to modify properties, and on the ‘privileges’ tab, select the option ‘Execution: execute the file as program’
Once bak to Eclipse, the Start Xampp worked properly.
PS: Using PHPeclipse 1.1.8 Ubuntu 6.10 Eclipse 3.2.1 Xampp 1.6 Java 5.0
PS: thanx to Volker for the workaround to the sudo issue on this wonderful platform:)

 
 
 
 
Comment by Apas
2008-07-24 23:27:25

phpeclipse 1.2.0/stable is released. When will this be integrated? It contains many improvements.

 
Comment by Web Agentur
2008-10-16 06:52:58

Hi,

eclipse is realy very nice. Tank you.

 
Comment by yunqing
2009-02-04 01:36:04

Hello ,I am a Chinese ,Easyeclipse is very nice ,I use it in win ,it works well,but I am using it in Ubuntu ,I don’t know how to set it with xampp ,it’s web browser and xdebug do not work ,who can help me ,thanks!

 
Comment by Jim DeLaHunt
2009-03-27 23:58:44

Many thanks to EasyEclipse for packaging everything so nicely! This really is a great way to put Eclipse into the hands of mere mortals.

I had just one more little thing I wanted out of the PHP Eclipse plugin: XDebug. But EasyEclipse’s “PHP Eclipse 1.1.9.CVS-20060920″ appears not to include XDebug. The the underlying PHPEclipse’s 1.1.9 stable release apparently does include XDebug, per a July 2008 PHPEclipse announcement”.

I am on Mac OS X 10.5, and was already using EasyEclipse for Python 1.2.2.2. After some stumbling around, here’s what worked for me:

1. Install XAMPP as my Apache web server and PHP interpreter.

2. Upgrade to EasyEclipse 1.3.1 (in my case, I started with EasyEclipse for Python 1.2.2).

3. Install the PHPEclipse plugin direct from the developers (i.e. not via the EasyEclipse team). I did this from within Eclipse, using the Help… Software updates… Find & Install. The PHPEclipse Install Instructions are quite clear, but be sure to use the update site for Eclipse 3.3 and 3.4.

4. When installing the PHPEclipse feature from within Eclipse, be sure to choose the XDebug feature also.

5. Configure XDebug according to Howto XDebug and PHPEclipse.

6. Write a simple “hello world” PHP program, and step through it!

(Why didn’t I use the stable release of PHPEclipse 1.1.9? As I was stumbling around, I think I got confused between the version numbering of Eclipse, EasyEclipes, and PHP Eclipse. I think pulled PHPEclipse 1.2.1 instead of 1.1.9, and PHPEclipse 1.2.1 requires Eclipse 3.3.x, and EasyEclipse 1.3.x is what supplies EasyEclipse 3.3.x. The path I took out of the swamp was to get the latest EasyEclipse for Python and proceed from there. Maybe if I had been thinking clearly, I would have installed PHPEclipse 1.1.9 into my EasyEclipse 1.2.2 and it would all have worked.)

Hope this is helpful for some folks. Enjoy!

 
Comment by mark.palmer@itsalllive.com
2011-04-01 16:15:33

I need help configuring easyeclipse for remote debugging. I am using a dedicated server on godaddy.com
I have a red hat linux fedora core operating system, Apache server, php 5.2. I would like to be able to code on my local pc and then debug on the remote testing server. can you help?
thanks
Mark

 
Your name (required for validation and display)
Your e-mail (required for validation but never displayed)
Your website URL (optional for display)
Your comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> in your comment.