Skip to content
This repository has been archived by the owner. It is now read-only.
Coda Plugin that uses PHP_CodeSniffer to automatically fix PHP coding standards issues
Shell PHP
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.


Type Name Latest commit message Commit time
Failed to load latest commit information.
PHP PSR-2 Fixer.codaplugin/Contents

PHP-PSR-2-Fixer Coda Plugin


PHP PSR-2 Fixer is a coda plugin created to provide a simple interface to automatically fix PHP coding standards issues using PHP_CodeSniffer.


  • Download the latest version in /releases
  • Extract the archive
  • Double click on PHP PSR-2 Fixer.codaplugin


Fix standards for an entire file:

  • Use the shortcut ^⇧F (control + shift + F)
  • Make a right click → Plug-insPHP PSR-2 FixerEntire file

Fix standards for the selected code only:

  • Use the shortcut ^⇧S (control + shift + S)
  • Make a right click → Plug-insPHP PSR-2 FixerSelection

Rules applied

When using the plugin, the following rules are applied:

  • Code conversion to PSR-2 standard
  • Remove trailing whitespace at the end of blank lines.
  • Removes extra blank lines in methods.


  • Coda >= 2.5
  • PHP 5.6 (bundled in MacOS)

PHP 7.x compatibility

The version of PHP bundled with MacOS is PHP 5.x. To fix PHP code written for PHP 7, you can upgrade the PHP version on MacOS with homebrew using:

brew install homebrew/php/php71


This plug-in is under MIT license (view license).

PHP_CodeSniffer license is available here.


PHP_CodeSniffer is bundled in this plug-in

You can’t perform that action at this time.