Coda PHP & Web Toolkit

  1. Download / Feedback •
  2. Help
  3. Coda Tips

AboutDownloadComments/Feedback

A Coda plugin aimed at PHP & Web development – not in active development.

Current version: 4.1 – Coda 1 and Coda 2

Features

  1. (Automatic) PHP syntax validation with jump to error and auto-save
  2. Clean up/reformat HTML, CSS, Javascript and PHP code (configurable)
  3. HTML, CSS and Javascript validation
  4. Minify Javascript and CSS
  5. Automatic check for updates
  6. It’s free (you can donate of course)

All features use the editor buffer (no need to save first) – Works with local and remote files – Written in Cocoa/ObjC.

General Preferences Preferences for CSS Preferences for Javascript Validation with errors Validation successful

Download

Download Coda PHP & Web Toolkit 4.1 »

Download Coda PHP & Web Toolkit 4.2 beta »

Sourcecode

https://bitbucket.org/mariofischer/php-web-toolkit/


Changelog »

Problems?

First have a look here » – if that doesn’t help, please write a comment below.

Enjoy using this plugin?

Great!
Just leave a comment or donate (via paypal) ».

And you can add it to your apps at iusethis.com ».
Or register domain names here. For German users I can only recommend all-inkl.com (Partnerlink).

Planned Features

  • Apply some functions only to the selected area if desired (DONE – in the current beta)
  • Floating result windows/Growl-like notification/Use Growl (DONE – in the current beta)
  • Switch online validators more easy (DONE – in the current beta)
  • Rewrite curl methods in cocoa
  • Add configuration options for JSTidy
  • Automatically install updates
  • Use Coda 2 API for go to line (DONE – in the current beta)
  • Use Coda 2 API for automatic PHP validation before saving
  • Up next: Minify JS/CSS automatically on publishing
  • CSS minify: Check other minifier
  • Respect spaces per indent (in different cases)
  • PHP tidy: Preserve whitespaces, if possible
  • Minification: Upload .min.css or similar, if possible
  • Check new HTML5 tidy
  • Javascript execution directly via cocoa (improvement necessary)
  • Make PHP tidy more configurable (if possible)

763 Replies to “Coda PHP & Web Toolkit”

  1. Hi,

    I’m on Coda 2.6.9 / Mac OS 10.13.1 Hight Sierra and unable to use “Tidy javascript” command.

    I confirm my file is encoded in UTF-8.

    I have following errors :

    Make sure the file has no errors, try using UTF-8 encoding.

    Fatal error: Uncaught Error: Function name must be a string in /Users/fabrice/Library/Application Support/Coda 2/Plug-ins/PhpPlugin.codaplugin/Contents/Resources/jsbeautifier.php:193
    Stack trace:
    #0 /Users/fabrice/Library/Application Support/Coda 2/Plug-ins/PhpPlugin.codaplugin/Contents/Resources/jsbeautifier.php(80): JSBeautifier->beautify(‘(function(){var…’, Object(BeautifierOptions))
    #1 /Users/fabrice/Library/Application Support/Coda 2/Plug-ins/PhpPlugin.codaplugin/Contents/Resources/jsbeautifier.php(1202): js_beautify(‘(function(){var…’, Object(BeautifierOptions))
    #2 {main}
    thrown in /Users/fabrice/Library/Application Support/Coda 2/Plug-ins/PhpPlugin.codaplugin/Contents/Resources/jsbeautifier.php on line 193

  2. -Coda 2 (2.6.7)
    -High Sierra

    Make sure the file has no errors, try using UTF-8 encoding.

    Fatal error: Uncaught Error: Function name must be a string in /Users/carlo/Library/Application Support/Coda 2/Plug-ins/PhpPlugin.codaplugin/Contents/Resources/jsbeautifier.php:193
    Stack trace:
    #0 /Users/carlo/Library/Application Support/Coda 2/Plug-ins/PhpPlugin.codaplugin/Contents/Resources/jsbeautifier.php(80): JSBeautifier->beautify(‘$(document).rea…’, Object(BeautifierOptions))
    #1 /Users/carlo/Library/Application Support/Coda 2/Plug-ins/PhpPlugin.codaplugin/Contents/Resources/jsbeautifier.php(1202): js_beautify(‘\t$(document).re…’, Object(BeautifierOptions))
    #2 {main}
    thrown in /Users/carlo/Library/Application Support/Coda 2/Plug-ins/PhpPlugin.codaplugin/Contents/Resources/jsbeautifier.php on line 193

  3. Hello, I’m unable to run “Tidy Javascript” on macOS 10.13 High Sierra, I get this error:

    JSTidy exception received.

    Make sure the file has no errors, try using UTF-8 encoding.

    Fatal error: Uncaught Error: Function name must be a string in /Users/matteo/Library/Application Support/Coda 2/Plug-ins/PhpPlugin.codaplugin/Contents/Resources/jsbeautifier.php:193
    Stack trace:
    #0 /Users/matteo/Library/Application Support/Coda 2/Plug-ins/PhpPlugin.codaplugin/Contents/Resources/jsbeautifier.php(80): JSBeautifier->beautify(‘if(lang===”EN”)…’, Object(BeautifierOptions))
    #1 /Users/matteo/Library/Application Support/Coda 2/Plug-ins/PhpPlugin.codaplugin/Contents/Resources/jsbeautifier.php(1202): js_beautify(‘if(lang===”EN”)…’, Object(BeautifierOptions))
    #2 {main}
    thrown in /Users/matteo/Library/Application Support/Coda 2/Plug-ins/PhpPlugin.codaplugin/Contents/Resources/jsbeautifier.php on line 193

    From the log I see this:

    Sep 26 16:13:03 MacBook-Pro Coda 2[5759]: [Coda PHP Toolkit] Executing at path /usr/bin/php with (
    “-n”,
    “-f”,
    “/Users/matteo/Library/Application Support/Coda 2/Plug-ins/PhpPlugin.codaplugin/Contents/Resources/jsbeautifier.php”,
    “–“,
    “indent_char_tab,”,
    LF
    )

    Everything was working correctly yesterday before jumping on 10.13…. any hint?

    Thanks!

Leave a Reply

Your email address will not be published. Required fields are marked *