Coda PHP Toolkit
Posted 4 months ago.
A Coda plugin aimed at PHP & Web development.
Features
- PHP syntax validation with
jump to error
- Use tidy to clean up/beautify HTML/CSS code (Configurable)
- HTML and CSS Validation
- Use phptidy to clean up/beautify PHP code
- Strip PHP whitespace and comments
- Automatic check for updates
All features use the editor buffer (no need to save first), works with local and remote files.
Preferences can be set. Written in Cocoa/ObjC.
Planned Features
HTML Tidy configuration editable via preferences- More general approach to online validation
- Automatically install updates (if possible)
- Generalized filters (maybe?)
Screenshots
Download
Download Coda PHP & Web Toolkit 1.7 »
Like this?
Support on iusethis.com »…
..or leave a comment, spread the word, visit the ads, donate.
75 Comments
7 Pingbacks
- Pingback: CodaでPHP開発 | BONKURA BLOG ~ November 9, 2009
[...] Coda PHP Toolkit | chipwreck [...]
- Pingback: Vitaminiza Panic Coda « Geeksfera ~ November 9, 2009
[...] Coda PHP Toolkit [...]
- Pingback: Coda: A Collection of 120+ Plugins, Clips, Snippets and Tuts For Designers and Developers ~ November 5, 2009
[...] Coda PHP Toolkit [...]
- Pingback: Coda : Plugin PHP | iVicta ~ August 18, 2009
[...] Contact Coda : Plugin PHP 18 août 2009 No comments yet Hello there! If you are new here, you might want to subscribe to the RSS feed for updates on this topic.Powered by WP Greet BoxRécemment je vous avez écris un post complet sur les plugins pour Coda indispensable. Ce matin je vous en ai trouvé un autre tout à fait indispensable pour les développeurs php. Il s’agit de « PHP Toolkit ~ Coda Plugin » [...]
- Pingback: Why I Use Coda for Web Development ~ July 6, 2009
[...] Plugins An open interface allows anyone to create plugins for the software, meaning some great addons are available like CSS Tools (compress and tidy your CSS) and PHP Validator. [...]
- Pingback: Pimp my Coda | Digitalistic - Mashup or die trying ~ March 31, 2009
[...] PHP Toolkit This plugin makes it easy to validate and clean up PHP files. [...]
- Pingback: chipwreck | blog » archive » Coda PHP-Plugin: New features ~ February 25, 2009
[...] Coda PHP Plugin [...]
Also like to have an avatar image? Get one at gravatar.com (free) »

very very very nice! thank you
Nice work!!!!!!
Please integrate into coda via plug-in:
http://www.bluestatic.org/software/macgdbp/
I’ll have a look :) At the moment I’m trying to integrate the W3C Validator which is not that easy, since the API misses some methods needed..
But thanks for the suggestion.
A new beta is available – see http://www.chipwreck.de/blog/2009/07/04/coda-php-toolkit-new-beta/
Any idea when the next version is coming to fix the issue with invisible text when using the tidy?
Hi – I suppose in about 2 weeks I’ll find some time to update the plugin.
At last! This means I can use coda as a proper development tool :) Thank you.
After I run php tidy in 1.6.4 all the end of line characters start to show – switching invisible characters on / off does nothing. How can I hide them?
Two questions: Do other invisible characters (like “->” for tabs) also appear and in which encoding is the php-file? You could also send me a small file in which those problems appear (see Contact for my mailaddress)
Regards,
Mario
Question answered – in the next update this bug will be fixed.
Great plugin, thank you! Coming from textmate, this is exactly the thing I missed (and which caused me to stay in textmate). I hope ISO-8859-1 support is coming soon. UTF-8 is great of course, but if you have older sites that you don’t want to convert, more encodings would help.
Thanks! As soon as the Coda API supports something like “getCurrentEncoding” I’ll put this possibility in the plugin.
The new version supports more encodings – you have to select the encoding, since the API doesn’t yet tell me which the right one is, but this should help :)
Hi,
Just wondering, I’m trying to use the Tidy HTML feature, but I’m getting “Error – No output received” … I’m on Mac OS X Tiger – does it matter only for the PHP features, or also the HTML? What to do?
Thanks
G
Yes, you need at least Leopard (or php5 installed) for the PHP-specific features (I updated the requirements above). But HTML tidy should work nevertheless. Could you try it out with another HTML-File? Or send me one per mail, which makes problems..
Hope this helps.
Seems to fail on 1.6.3. I’m getting this error using php tidy:
Parse error: parse error, expecting `T_VARIABLE’ or `’$” in /Users/aaron/Library/Application Support/Coda/Plug-ins/PhpPlugin.codaplugin/Contents/Resources/phptidy-coda.php on line 387
I hope this can be fixed, I’ve been looking for a PHP plugin for a while!
Aaron
Hi -
this shouldn’t have to anything with the 1.6.3 release. Do you encounter this also with other php-files? If possible, could you mail the offending php-file to me?
Another thing to check: Open the Terminal, enter “php -v” (without quotes) and return – what result do you get?
regards,
mario
Thanks for the fast reply!
I’ve tried it on multiple files, including nearly empty ones. ( fails) It might be that my php version is out of date? Does this work on php < 5?
aaron-mac:~ aaron$ php -v
PHP 4.4.9 (cli) (built: Sep 17 2008 14:54:01)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
Yes, php4 – that’s the problem. With php5 everything should work. Which OS X version do you use? In the current Leopard release php5 is included.
You can install a more recent php-version with MacPorts, but therefore you have to edit the path to php in the first line of the “phptidy-coda.php”-file.
Hope that helps.
Yes I’m on Tiger, that’s why. I’ll look into upgrading. Thanks again for your efforts and support on this plug-in.
Great plugin. Thanks.
Thank you for contributing to the Coda community ! Using this plugin daily, saves me alot of time switching back between terminal windows!
Cheers !
Glad to hear that – as soon as the Coda-API offers some advanced functions, more features are to come..
This is awesome thank you!
Would it be possible to add a feature which lets you find an opening bracket’s closing bracket (and vice versa)? I know Coda has a feature which highlights them but its no use when there is lots of code between the brackets.!
Thanks :)
The bracket highlighting is at the moment not possible – for the Coda-API allows only a limited set of actions like replacing text, opening files etc., but no features like highlighting text.
Besides this would also be not easy writing such a feature (and doing it better than the Coda developers :)
Thanks for taking the time to do this, just starting to use PhP with Coda and this is a welcome resource!
Hey man, good work!
I’m not sure how you wrap your brain around this stuff, but keep it up!
Great script, works as advertised. Thank you!!!
Do you know how I could add a keyboard shortcut to run this?
Thanks,
Michael
Simply use the keyboard shortcuts in OS X System Preferences and add a new shortcut.. That’s the most easy solution I think.