Coda PHP Toolkit
Posted 9 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, CSS and Javascript 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 preferencesJavascript Tools (First: JSLint, check in current beta)- Javascript: Some more tools (Minify etc.)
- More general approach to online validation
- Automatically install updates (if possible)
- Generalized filters (maybe?)
Screenshots
Download
Download Coda PHP & Web Toolkit 1.81 »

Like this?
Support on iusethis.com »…
..or leave a comment, spread the word, visit the ads, donate.
Also like to have an avatar image? Get one at gravatar.com (free) »

Thank you for this great plugin!
What about implimenting something like jquery-lint?
http://james.padolsey.com/javascript/jquery-lint/
Hi -
yeah, something like that is planned for the next release, but now I’ll be on vacation for the next week so expect the next release in 2 or 3 weeks :)
mario
Hi.
It seems that it is removing my parenthesis, when tudying PHP. So require_once(“class.forms.php”); becomes require_once “class.forms.php”;
Anyway to avoid this?
Hi -
at the moment not. I could change the tidyPHP-class, but that would make this behaviour standard. A better way should be to configure it. If I make the next release I’ll have a look and try to include it.
mario
the downloaded plugin can’t be opened, I tried both versions, the universal and the one from top link. any ideas? I am on latest osx and intel. thanks!
Hi – does the downloaded zip-file make problems – or the “phpplugin.codaplugin”-file itself?
Hi :D
The plugin itself. The error I get is :
The document “PhpPlugin.codaplugin” could not be opened. The pug-in “PhpPlugin” could not be read. Please verify the plug-in’s format or try re-downloading the plug-in from the author’s website.
Same happens if double-clicking the plugin which usually would install it or when trying to open it via the Coda Plugin Creator.
Hi -
I see! The codaplugin-extension is linked to the “Coda Plug-in Creator” – so if you doubl-eclick a plugin “Coda Plug-in Creator” tries to open it. In this case this goes wrong, because the Plugin was developed with Xcode and not the Plugin Creator.
To install the plugin in Coda do the following:
- Right-click on the “PhpPlugin.codaplugin”-file and choose “Open with…” and select “Coda” (instead of the default entry “Coda Plug-In Creator”).
(You can also use the information window CMD+I to change the association of .codaplugin-files permanently).
mario
Ah. Thanks! I didn’t even think to check if the correct program was trying to open it :)
[...] Share this post! Twitter Digg Facebook Delicious StumbleUpon Google Bookmarks LinkedIn Technorati [...]
Thanks for the plugin!
Where are the config files for HTML Tidy kept on OSX? I want to get rid of the removal of entities “feature”. The Show in Finder button just moves up and down but doesn’t open anything. Thanks!
Hi -
the “show in finder”-button will be fixed in the next release.
The files can be found this way:
Move to:
(your user folder)/Library/Application Support/Coda/Plug-Ins/
Now right click the “PhpPlugin”-file and select “Show Contents”.
Then move to:
Contents/Resources/
There you’ll find the tidy_config_*.txt files for the different configurations.
Hope that helps,
mario
Thanks, Mario! I can see how the Show in Finder Button would be useful ;-)
Hi Mario.
I’m using coda on 10.5.8 on G5. OSX says that file downloaded from this site is for intel macs. Are there any chances of getting ppc version of plugin? Or maybe you could share the source, then I could try to compile it by myself?
Hi -
no problem, please try if this one (universal) works:
http://www.chipwreck.de/downloads/php-codaplugin-1.81univ.zip
mario
Thank you very much, it works great!
Great plug-in Mario
it’s good to see that you start adding js into plug-in as well, here is couple of sources or suggestion:
http://mondaybynoon.com/2008/12/15/css-tools-coda-plugin/
additional formatting for css which could be add to this plugin
http://mondaybynoon.com/2008/12/15/javascript-tools-coda-plugin/
additional formatting for js which could be add to this plug-in
Also textmate has nifty js format bundle that will be a great if that can be added in future releases
Thanks again for this handy useful plug-in
Hi -
CSS reformatting (single, multiple lines, high/med/low compression) is already possible.
But thanks for the JS suggestions – including minify and YUI is a good idea, I think this will be one of the next features. I had a look at the TextMate JS and JSTools bundle, that’s a whole lot of stuff: Dojo, Google Closure, JSMin, YUI and so on… I think I should start with the most used ones: YUI and a JS Beautifier (reformatter).
mario
Excellent stuff, this is probably my most used plugin, cheers!
Great fanatastic plugin !
The php jumpto line is the greatest for me
i have a little issue when validating html online, the css part of the w3 validation page is not working. Maybe just a wrong url issue?
Hi -
well here it works (HTML & CSS), just tested it. Maybe the w3c-page was temporarily offline. Are you referring to HTML or CSS validation – and – which error do you get?
mario
hey thanks for the plugin and your work.
Hi Mario,
First of all thanks for this awesome plugin!
Is there anyway you could improve CSS Tidy to not screw up CSS 3 declarations like :
background: -webkit-gradient(linear, 0 0, 0 100%, from(#e8e8e8), to(#fefefe));
background: -moz-linear-gradient(top, #e8e8e8, #fefefe);
That would be a great addition.
Happy easter,
Matt.
Hi -
unfortunately CSStidy isn’t being developed actively (last release 3 yrs ago) – but I’ll have a look at the sourcecode, maybe there’s an easy way to improve it.
mario
Okay, the next version (1.81) will have a workaround for this problem by ignoring CSS values starting with a dash (-), should be ready in a few days.
[UPDATE:] Is now released..:)
regards,
mario
Thanks !
Great idea to ignore CSS values that starts with a dash.