All 3 have in common:
- lowerCamelCase for methods and variables, UpperCamelCase for classes
- Curly braces on their own line for class and function definitions
- Curly braces are always required for control structures like if, regardsless of the amount of statements
- Indent & format with spaces, not tabs
- Symfony and eZ Components require curly braces on their own line for control structures, Zend Framework has them in the same line as the statement.
- Symfony indents with 2 spaces, Zend Framework and ezComponents indent with 4 spaces and
I have bolded what matches our current coding guidelines in git.
And a quote from Fabien Potencier: "The Zend framework uses spaces, not tabs, and the same goes for ezComponents, Drupal, PEAR, and many other PHP projects. ".
Symfony: http://trac.symfony-project.org/wiki/Ho ... gStandards
Zend Framework: http://framework.zend.com/manual/en/cod ... ndard.html
eZ Components: http://www.ezcomponents.org/contributin ... _standards