# Where's the sun, or, How I Write PHP!

Published: 2006-01-27

<p>Friends, I'm sure the post would be a heck of a lot funnier if instead of "How" I would write "Why", but I'm sticking to "How" for .. now ;)</p>
<h3>The sun's shadow</h3>
<p><img align="left" alt="Eclipse 3.1 Logo" title="Eclipse 3.1 Logo" src="/content/posts/2006/01-27-wheres-the-sun-or-how-i-write-php/images/eclipse_logo.jpg" /> Everybody knows <a title="Eclipse Platform" href="http://www.eclipse.org/eclipse/">Eclipse</a>, but if you don't, here's what they have to say about it (via the <a title="Eclipse FAQ - About" href="http://www.eclipse.org/eclipse/faq/eclipse-faq.html#about_3">Eclipse FAQ</a>):</p>
<blockquote><p>The Eclipse Platform is an open extensible IDE for anything and yet nothing in particular. The Eclipse Platform provides building blocks and a foundation for constructing and running integrated software-development tools. The Eclipse Platform allows tool builders to independently develop tools that integrate with other people's tools so seamlessly you can't tell where one tool ends and another starts.</p></blockquote>
<p>The cool words here are "Extensible", "Anything" and "Nothing" which is great news all over for generic lovers everywhere :) . So we can use the Eclipse IDE to write <a title="Java - Sun" href="http://java.sun.com/">Java</a> out of the box but there are projects that allow us to write things in other languages (like <a title="C/C++ Eclipse Project" href="http://www.eclipse.org/cdt">C/C++</a>, <a title="Eclipse Python Integration" href="http://wiki.python.org/moin/EclipsePythonIntegration">Python</a>, <a title="Epic Plugin" href="http://e-p-i-c.sourceforge.net/">Perl</a>, <a title="Ruby Eclipse" href="http://sourceforge.net/projects/rubyeclipse">Ruby</a> heck, even <a title="Cobol" href="http://www.eclipse.org/cobol">Gramps</a>) , but what I'm really interested in is, obviously <a href="http://www.php.net">PHP</a> and that's taken care of.</p>
<h3>Enter <a title="PHPEclipse home" href="http://phpeclipse.net">PHPEclipse</a></h3>
<p><img align="left" alt="PHPEclipse Logo" title="PHPEclipse Logo" src="/content/posts/2006/01-27-wheres-the-sun-or-how-i-write-php/images/phpeclipse_logo.jpg" />What they say :</p>
<blockquote><p>The PHPeclipse project aims to create a full featured PHP IDE with features like internal PHP parser, debugger, code formatter, outline view, templates and much more.</p></blockquote>
<p>And it works too :) , the installation is a breeze, especially if you go with the Eclipse Update Manager, which installs the current stable version of PHPEclipse (instructions are <a title="PHPEclipse Instalation" href="http://www.plog4u.org/index.php/Using_PHPEclipse_:_Installation_:_Installing_PHPEclipse">here</a>), but it's equally easy to install the latest <a title="PHPEclipse CVS builds" href="http://sourceforge.net/project/showfiles.php?group_id=57621&package_id=165724">CVS builds</a>, you just download them and unzip them all over you Eclipse dir ... how nice is that ;)</p>
<p>What has it done for me ? Well, I code faster, I actually write more comments (even if mostly to say bad things about my code, or how cool things could be if I had more time, etc etc), Eclipse helps me manage the gazillion files my projects usually generate and, if one day I get off my chronically lazy bottom, it will even help me, gosh, this is so exciting, DEBUG my apps (<a title="PHP Manual - var_dump(...)" href="http://www.php.net/var_dump">var_dump</a>, I'm gonna miss you ;) ), although, ever since <a title="PHP5" href="http://www.php.net/php5">PHP 5.0</a> came out, my debugging needs have dropped tremendously, mostly because I really enjoy my Objects and PHP 4.0 made SUCH A MESS of references that you could write a book on the subject of sleepless nights searching why the hell a certain object was, apparently, forgetting WHAT it was ... ufff, thank you PHP 5 and can I have PHP 6 now (damn namespaces, I need you :) ) .</p>
<h3>What else then ?</h3>
<p>Well, I use the <a title="Subversion Eclipse Plugin" href="http://subclipse.tigris.org/">Subversion</a> plugin (One Click Commit (tm) ;) ), <a title="JSEclipse plugin" href="http://www.interaktonline.com/Products/Eclipse/JSEclipse/Overview/">JSEclipse</a> plugin, <a title="XMLBuddy" href="http://xmlbuddy.com/">XMLBuddy</a>, errr, what else, I have <a title="AnyEdit Tools - Eclipse" href="http://andrei.gmxhome.de/anyedit/links.html">AnyEditTools</a>, the <a title="C/C++" href="http://www.eclipse.org/cdt/">C/C++ Plugin</a> and I've recently installed the <a title="Web Standard Tools - Eclipse" href="http://download.eclipse.org/webtools/downloads/">Web Standard Tools</a> and I've been meaning to try the <a title="UML2 Eclipse Plugin" href="http://www.eclipse.org/uml2">UML</a> plugin, but then again, I've been trying to use <a title="UML" href="http://www.uml.org">UML</a> for a long time but keep falling back to SAAOP (Squares and Arrows on Paper) every time, so I guess it's just one of those things ;) . As a simple note, everything EXCEPT XMLBuddy can come through the Eclipse Update Manager platform, so it's easy to install and update ;)</p>
<h3>But what about you?</h3>
<p>I know a blog is not the best place to discuss things, but post a comment or better yep, a post on your blog with tracking back here saying either how you use Eclipse or how you write your PHP (yeah, notepad works great , very l33t of you ;) )</p>
