Skip to content

determin1st/sm-base

Repository files navigation

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

About

:feelsgood: state machine base

Resources

License

Stars

Watchers

Forks

Languages