title: PHP_CodeSniffer Tutorials
body: <p>Does anyone have any tutorials that are up to date, and include more complex processing of rules?  Most of the tutorials I am finding on line do not deal with 1.4.3, with the ruleset.xml, but the old php file of coding.</p>
  
  <p>Secondly, I want to do more in-depth processing as our company has different coding standards that I need to code for an enforce, and want a good starting place to understand the existing complex sniffs, and the structures therein.</p>
  
  <p>Our company uses different standards than the common libraries so that when reading the code, the developer knows if the method is from an external library (PEAR/Zend/etc...) as the naming convention will indicate that.  If the coding standard is not our format, then the method is from an outside library, and chances are good it works well, without the need for the developer to re-implement something.</p>
  
  <p>In larger code bases, you will see a class created and methods referenced, without knowing the sources anymore, without tracing up the stack.  Therefore, by using different standards, are classes will stand out.</p>
  
  <p>For instance:</p>
  
  <pre><code>$Foo = Foo::Find();    // Mixed case - from a library or PHP itself
  $Bar = BAR::Find();    // All uppercase - ours, may need to optimize the Find()
  </code></pre>
  
  <p>Variable declarations are the same, where we use a trailing underscore on methods and variables to indicate Private scope.  If someone is changing the scope resolution, they would remove the underscore, and the change/remove private keyword to clearly indicate that they understood the ramifications of their change.</p>