Coda PHP Toolkit
Posted 3 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.
64 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) »

Hei!
I cannot save settings in coda after install your plugin. Anyone else with this problem?
Greetings.
Markus
Hi -
I assume you clicked “save” :) Could you open the Coda Preferences file located here:
YOUR_HOME_FOLDER/Library/Preferences/com.panic.Coda.plist
(You need a plist-editor, included for example in the Apple Developer Tools)
..and look if you find keys named “dechipwreckCssTidyConfig” or similar? (If you haven’t got an appropriate editor, drop me a mail)
Regards,
mario
There ist no “save”button on global coda-settings. And no, i doent find somethink like “dechipwreck…”.
Okay, misunderstood :) Coda preferences can’t be saved.
Will try to find out if it’s got something to do with the PHP Toolkit and if so, how to resolve. If someone else has the same problem – don’t hesitate to post a comment here.
UPDATE: Problem found, fixed in the upcoming version (the next days I suppose)
The about-windows says v0.96 – is this the latest version?
Eh no, the current version should be 1.62 .. v0.96 is much too old. Simply go to: “your user folder -> Library -> Application support -> Coda -> Plugins”, delete the old PhpToolkit plugin bundle, download the current one and double click it. This should work.
Absolutely awesome. Thanks for this!
This version appears to ignore the ‘Default Line Endings’ set in coda’s preferences?
Set to use windows
http://lulzwut.com/php/before.png
http://lulzwut.com/php/after.png
Hi -
okay, I’ll have a look. One question though: Was that any different in the previous versions?
[UPDATE Jan,25th] And again – no API function from Coda to read the current line endings.. But I’ll try to find a workaround of course..
mario
Huge improvement on version1.6
interface and the way it’s function.
Great work and Thanks
It works great on my G5, thanks for the PPC compatibility.
This is fantastic. Thanks so much!!
When running Tidy PHP I get the following error:
An application error has occurred.
This error will cause instability and it is recommended you quit and relaunch Coda.
(NSInvalidArgumentException) *** -(NSCFArray insertObject:atIndex:]: attempt to insert nil
Running php-toolkit 1.4 with Coda 1.6.7
Any suggestions?
Could you look at the Console output – there should be some more lines .. Or send me the file if possible?
[Update Nov, 26th] No reply until now – so I’ll assume it hasn’t happened again. Otherwise: Send a mail or comment here.
I got the same error “(NSInvalidArgumentException) *** -[NSCFArray insertObject:atIndex:]: attempt to insert nil” here is what console saids.
12/11/09 7:33:04 PM Coda[21547] NSExceptionHandler has recorded the following exception:
NSInvalidArgumentException — *** -[NSCFArray insertObject:atIndex:]: attempt to insert nil
Stack trace: 0×43319a 0×929ebe3b 0×96565dcb 0×96565e0a 0×95a3c660 0×9595a8d4 0×9595a7e4 0×14876743 0×14874ec5 0×95dcdb9b 0×14874d8b 0×95d8be8f 0×95d8bdcc 0×95d8bc52 0×95d8b2ab 0×95d8aafe 0×95d8a3b8 0×95d88af7 0×95d556a5 0×95cb2fe7 0×95c801d8 0×3512 0×3439 0×2
12/11/09 7:33:04 PM Coda[21547] NSExceptionHandler has recorded the following exception:
NSInvalidArgumentException — *** -[NSCFArray insertObject:atIndex:]: attempt to insert nil
Stack trace: 0×43319a 0×929ebe3b 0×96565dcb 0×96565e0a 0×95a3c660 0×9595a8d4 0×9595a7e4 0×14876743 0×14874ec5 0×95dcdb9b 0×14874d8b 0×95d8be8f 0×95d8bdcc 0×95d8bc52 0×95d8b2ab 0×95d8aafe 0×95d8a3b8 0×95d88af7 0×95d556a5 0×95cb2fe7 0×95c801d8 0×3512 0×3439 0×2
I figured out the problem, if you dont save the document you get that error, once you save it and run it again it works fine.
Thx! Just updated the docs – I assume the document was new (=empty before you entered text and saved it) ?
The behaviour of the functions is a little bit inconsistent: php validation and php strip comment take the current editor buffer (regardless of what’s on the disk) – the other functions use the file on disk (so if you don’t save the file might be yet empty).
[UPDATE 1:] The beta version now handles this more graciously (beeps or tells you that you should save the file before).
[UPDATE 2:] One solution would be to save the file automatically (maybe not what everyone wants), another one to create a temp file with the buffer contents (nicer but creates lots of new error possibilites..:). I’ll have a look.
Thanks for the reply, (I got your notification). The document was new but not empty. I created a new document and pasted code from another document and did not save. I used the tidy functionality and that is when I got the error. Once I Saved the file it worked. Thanks for the update though.
Yes..that’s what I meant: The file on disk was still empty.
The beta version (see above) doesn’t have this problem anymore – you can automatically save the file before running CssTidy or PhpTidy. HtmlTidy works now with the current buffer contents (regardless of saving or not).
Awesome. Works a treat. Keep up the great work.
Thanks
Brent