/phpcs-rb

A Ruby wrapper for Php_CodeSniffer

Primary LanguageRubyMIT LicenseMIT

Build Status

Phpcs

Phpcs is a ruby wrapper for Php_CodeSniffer.

Installation

Add this line to your application's Gemfile:

gem 'phpcs'

And then execute:

$ bundle

Or install it yourself as:

$ gem install phpcs

Usage

Take a look to test/phpcs_test.rb to understand how to use it.

You can choose one of the follwing coding standards: PEAR, PHPCS, PSR1, PSR2 (default), Squiz, Zend

Contributing

  1. Fork it ( https://github.com/[my-github-username]/foo/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request