Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

baddj

macrumors 6502
Original poster
Mar 4, 2009
354
38
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.
 
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.
 
Look at Espresso, and PHPStorm

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.
 
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.
 
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.
 
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.
PHP:
$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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.