Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 813 Bytes

README.md

File metadata and controls

31 lines (24 loc) · 813 Bytes

state machine base

autoload

require 'sm-base/autoload.php';

autoload with composer

...

naming

  • classes: PascalCase or UpperCamelCase
  • constants: self::ALL_CAPS_SNAKE_CASE
  • static property: self::$ALL_CAPS_SNAKE_CASE
  • static variable: $ALL_CAPS_SNAKE_CASE
  • static method: self::lower_caps_snake_case()
  • dynamic property/method: $this->isCamelCase
  • array parameter: $options['lower-caps-hyphen-case']
  • files: lower-caps-hyphen-case.ext