Need assistance finding the perfect PHP IDE for Ubuntu - php

I'm trying to build an application in PHP using my Ubuntu laptop. I'm having a hard time, however, finding an IDE that fits my needs. My ideal IDE would have the following features:
Code folding
Easy code snippet creation that is assignable to a shortcut key
Code organization
Unit Testing
Debugger
Netbeans fits most of these requirements except that the ability to create snippets is complex. One must create a module file and then screw around with some XML and do the hokey poky to get a super simple snippet installed. I tried creating a macro in NetBeans, but it screws up the javadoc and I have not figured out a way to tell it to just paste in what I type for the duration of the macro rather than using all of the human assistance features. So what I get is a bunch of jacked up looking code with jacked up phpdoc.
gPHPEdit is more of what I'm looking for as far as snippet support, but it sorely lacks all of the other features that NetBeans does so well.
Any ideas on a great PHP IDE. Since this is a personal project, purchasing an IDE is not an option.

In NetBeans, you can make code templates. These are abbreviations with variable support, what you can complete with a selected key (tab, ctrl+enter etc).
You can find it under Tools -> Options -> Editor -> Code Templates.

I use Aptana which is build on top of eclipse or can be used as an eclipse plugin. It comes with some basic snippets and creating new snippets isn't that hard with eclipse.
I would recommend to start with the 3.0 beta as it has some new features that are quite useful. Apatana has almost everything you need and as it uses eclipse, you will get almost everything that is missing (like SVN or GIT support).

Related

Eclipse Orion PHP plugin

So for a project I need to check if I'm able to get code completion working for Eclipse Orion (on the IBM DevOps Services WebIDE) when coding in PHP. There's a default plugin available but it only provides syntax highlighting. Code completion is the deciding factor this time.
Just googling around I've found some plugins here and there in various git repos but they seem to be for an outdated version of Orion, hence not usable here.
So, just a quick throw out if someone is using IBM DevOps Services WebIDE (or some Eclipse Orion implementation) with a PHP plugin with code-completion? Preferably a link to installation steps since I need to educate a programming class on how to set everything up from a clean slate.
Orion's Go language plug-in provides a straight-forward example of contributing content assist via a plugin, see http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/tree/bundles/org.eclipse.orion.client.ui/web/plugins/languages/go?id=R7_0 . To make something similar for PHP you would create a plug-in with the same shape that defines at least the "orion.edit.contentAssist" service, and then install it in your Orion/WebIDE on its Settings-Plugins page (point it at your plugin's .html file).

Eclipse IDE Setup for PHP/Zend, Javascript/JQuery, CSS, HTML, XML

I would like to setup my Eclipse IDE (Helios 3.6.x) for Web Development and I have been trying to do this for hours now without satisfying results. I was using Eclipse with the Aptana 1.5.x Plugin until now, but it is outdated, painfully slow, has no support for XHTML 1.0 / HTML 5 and CSS 3 and it is not supported any more. Aptana 3.0.0 instead is very buggy and not ready to use.
So I try to set up Eclipse for PHP Developers to get the IDE I need, but there are a lot of problems. The PHP support is good enough: Code completion, errors are detected and highlighted detailed, auto-code-completion and documentation on key up, code outline and custom syntax highlighting. But I can not get working the same things for Javascript / JQuery, HTML and CSS files, errors are shown not or poorly. I tried Eclipse for Javascript Developers, things are are better here with HTML and Javascript (Errors, but no autocompletion), CSS still sucks.
I tried some plugins searching on the internet but nothing seems really to work and most plugins are outdated, too. Does anybody know the right and up to date plugins for this purpose? Or is it just a problem with the settings and I am not able to figure out how to configure it? How can I integrate Eclipse for PHP Developers and Eclipse for Javascript Developers into one installation?
I cannot imagine to be the first one to have this problem, this is such a standard IDE setup for Web Development.
Install Eclipse for PHP Developers (PDT) and then install aptana studio v2 as a plug-in. That way you have the autocompletion for php and all the nifty features of aptana for other web-related files such as javascript (then you can actually install support for specific libraries such as jquery).

How to use Visual Studio for WordPress development?

Does anyone use Visual Studio to do WordPress development? If so, how do you do it?
Programming for Wordpress is mainly coding css, php, html and js files. If you're asking about using Visual Studio for this scenario, I'm assuming you want a plugin that provides code hints for WordPress development API. Since I don't know anyone, I'm going to give you some other options.
Dreamweaver and CodeLobster come to mind as commercial applications. If you want something in the open source world, I recommend you a normal multi language IDE that supports PHP: the most important thing here is to use one that at least supports some kind of snippet functionality.
That goes from Netbeans to Aptana (which is based on Eclipse) to notepad++ with snippets functionality. The last one is an interesting solution since it's really lightweight but you will need to create your own snippets for Wordpress API functions and hooks.
I had Aptana installed in my machine in the past, but now I'm using gVim with snipmate plugin and some snippets of my own that I create when I realize I'm doing repetitive tasks.
No built-in support for VS, and I guess there won't be, but there are some options like the answer on this thread for Expressions. The other thing I've been looking at recently is WebMatrix - it looks promising in that it supports WordPress.
Did you check out VS.php ?
I've looked in vain for a decent plug-in for VS that would properly handle PHP, and have never been able to find one.
I always end up back with Netbeans.
Textmate :)
Old question, I know. But if I came looking, someone else probably will as well. :)
Couple of videos here about the plug-in
PHP Tools for Visual Studio
A wordpress plugin developer saying how he uses visual studio code with plugins to run his wordpress:
https://deliciousbrains.com/vs-code-wordpress/
He seems like he knows what he's talking about.

Best IDE for debugging and Code Completion in CakePHP

I am new to CakePHP framework. Does anybody have any experience with a free IDE for Uuntu which can perform code completion and most importantly ability to debug CakePHP code?
Any responses would be greatly appreciated.
Thanks
I would use Netbeans, and I mean, I do use Netbeans. It can intelligently work across inherited classes so works very well against CakePHP.
http://netbeans.org/
Updated:
In addition, now netbeans IDE has got a plugin for CakePHP
Sublime Text 3 is the best one in my opinion. I have used PhpStorm, Komodo, Aptana Studio 3, Notepad++ and others. All are good IDEs. But Sublime Text is giving me auto complete for CakePHP and other features too. Try it out. You will like it.
See http://mark-story.com/posts/view/code-completion-for-cakephp-in-eclipse
Netbeans works well for PHP in general, you will get full code completion in Controllers, but couldn't get proper completion in Views to work.
Same in Eclipse, however no code formatting for PHP is pretty n00by.
Debugging PHP generally sucks, I mostly use $this-log().
I suggest to try Codelobster PHP Edition
It has free debugger and special plug-in for CakePHP autocompletion.

PHP development environment best practices

There are so many options when it comes to PHP development environments and you have to piece it all together yourself.
I'm wondering if someone has come up with what they think is the ideal setup that gets out of your way and lets you develop.
Right now I use vim and svn from the command-line. I write scripts to manage builds but I'm thinking about looking into Phing.
I love vim but I'm seriously thinking of trying Eclipse with the PHP plugin because I imagine it makes common SVN options a bit easier (moving files around in a project).
Something to support continuous integration on the database would be a major plus!
UPDATE: Just wanted to stress that previous line up there. I realize some frameworks will help with this, but I don't use a framework. Is there some simple module out there (included in the IDE or not) that will let me easily tie my database schemas/data to a subversion revision, letting me rollback and forward, tag, branch, etc?
Any comments on things beyond the editor? For example: Builds, managing staging/production/development environments, automated testing and building upon SVN commit, etc. Ideally we can make this post a "Go to Whoah" for setting up a professional PHP team development environment.
I recommend to use a complete featured IDE like the PDT (the eclipse PHP project), it gives you:
debugging (using Xdebug or ZendDebugger)
SVN/CVS very convinient integration
DB integration (the DTP plugin)
and much more, based on features of the PDT and eclipse plugins
if you have some money to spent, I think the Zend Studio For eclipse worth it.
It gives you better debugging, PHPUnit integration, ZendFramewrok support, Refactoring and remote system support (ftp, ssh etc.)
I'm giving Netbeans 6.5 PHP bundle a try and liking it very much. I find debugging in it is less clunky than in Eclipse PDT.
I too love vim and used to develop using the same environment as you. These days though I find Eclipse PDT, with Subclipse for SVN integration, to be invaluable. XDebug is great too - no more var_dump();exit; for debugging.
One of the best plugins for a vim fan moving to Eclipse: viPlugin. Well worth the token licence fee to have vi key bindings in Eclipse.
If you are working from the command line, using Git's SVN module eases most of the SVN pain - it handles deletes and moves automagically.
The GUI front ends (kgit or qgit) provide a very intuitive history browser.
I personally like the way that AptanaStudio has pre-packaged all the great Eclipse modules you need to have a very smooth PHP development environment

Categories