Skip to content

Instantly share code, notes, and snippets.

@versedi
Last active August 29, 2015 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save versedi/2def30f6f5af3000eba0 to your computer and use it in GitHub Desktop.
Save versedi/2def30f6f5af3000eba0 to your computer and use it in GitHub Desktop.
Cygwin + Conemu + Sublime + XAMPP + PHPCS/PHPMd/PHPCBF

Install XAMPP
Configure PEAR to work with XAMPP
Install into e:/xampp/php
phpcs.bat
phpmd.bat
phpcbf.bat

Install standards into e:/xampp/php/pear/php/codesniffer/standards

~/.bash_aliases

  alias fixuj='phpcs.bat --standard=Ecg . --extensions=php,phtml'
  
  
  codebfunc() {
      phpcbf.bat --standard=PSR2 $1 --no-patch -vvv
  }
  alias codebf=codebfunc
  
  
  phpmdfunc() {
      phpmd.bat $1 text e:/xampp/php/ruleset.xml
  }
  alias phpmdf=phpmdfunc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment