PDA

View Full Version : Can xcode be used as php IDE?




baddj
Oct 17, 2010, 07:24 PM
Hello,

I want to know can i use xcode to code my php application?

If yes how do i set it up? will also want to use the svn client in xcode.



Catfish_Man
Oct 17, 2010, 08:30 PM
In the sense that it can edit text, yes. It has no PHP support itself though.

jared_kipe
Oct 17, 2010, 09:28 PM
You would probably be interested in Coda by Panic.

MorphingDragon
Oct 19, 2010, 04:18 AM
Or Aptana or even Dreamweaver.

jared_kipe
Oct 19, 2010, 11:50 AM
Or Aptana or even Dreamweaver.

Aptana looks interesting and I'm gonna give it a try. I'd probably argue that Dreamweaver has never been particularly good at PHP or really almost anything ;) but I'm sure others would disagree.

angelwatt
Oct 19, 2010, 01:14 PM
While Aptana looked more specific, I found NetBeans to be much more stable and capable. Aptana would run very sluggish, especially after opening 4+ documents. Personally I chose not to use a IDE for PHP development because all of the options were bloated. I use BBEdit for all my coding.

SpookyLars
Oct 19, 2010, 01:21 PM
If we talk about text editors for PHP: try TextWrangler (http://www.barebones.com/products/textwrangler/) or MacVim (http://code.google.com/p/macvim/), both are available as free software.

ddelmonte
Oct 19, 2010, 10:43 PM
I use Coda myself, but there is some frustration that Panic are slow to respond with updates. We are all waiting on v.2.

Meanwhile, these other two options are not bad: Espresso and PHPStorm.

baddj
Oct 20, 2010, 07:33 AM
I was just thinking as Xcode has svn client in it plus its free and comes on the OSX disk.

I tried coda but found its svn client is very unstable try moving or deleting a file -.-

I know my code so i do not need them tips and stuff.

Menge
Oct 20, 2010, 07:38 AM
If all you need is syntax highlighting and a nice way to view project files, then yes! Also, the text-completion will complete text previously used (not based on actual language, just repeated words).

I use it. It's free and I don't have to move away from the interface that I'm used to when I code for the iPhone.

Cabbit
Oct 20, 2010, 08:18 AM
I use Xcode for a IDE most of the time but it does struggle sometimes with php's syntax.

For instance it treats everything after the following line as a comment.

$formAttributes .= "<p>".ucwords($data[0]).": <br /><?php echo Form::".$feildtype."(array('type' => 'text', 'name' => '".strtolower($data[0])."', 'value' => Form::formValue(\"".strtolower($data[0])."\")));?></p>".$lineBreak;


There are however some plugins that can tailor xcode to work better with php.
http://www.obdev.at/products/xcode-odphptools/index.html is a good little example.