A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | ||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | name | Horde | PEAR | Solar/Aura | Zend | Symfony2 | PPI | eZ Publish | CakePHP | Lithium | Drupal | SabreDAV | phpBB | Zikula | Chisimba | C4 | Respect | Composer | Doctrine | Nette | FLOW3 | Propel2 | Joomla | |
2 | url | http://www.horde.org/apps/horde/docs/CODING_STANDARDS | http://pear.php.net/manual/en/standards.php | http://solarphp.com/manual/appendix-standards.style | http://framework.zend.com/manual/en/coding-standard.html | http://symfony.com/doc/2.0/contributing/code/standards.html | http://www.ppi.io/docs/coding-standards.html | https://github.com/ezsystems/ezp-next/wiki/codingstandards | http://book.cakephp.org/2.0/en/contributing/cakephp-coding-conventions.html | https://github.com/UnionOfRAD/lithium/wiki/Spec%3A-Coding | http://drupal.org/coding-standards | http://code.google.com/p/sabredav/ | http://area51.phpbb.com/docs/31x/coding-guidelines.html | https://docs.google.com/a/zikula.org/document/edit?authkey=CPCU0Us&hgd=1&id=1fcqb93Sn-hR9c0mkN6m_tyWnmEvoswKBtSc0tKkZmJA | http://www.chisimba.com | n/a | https://github.com/Respect/project-info/blob/master/coding-standards-sample.php | n/a | Object Calisthenics for PHP | http://doc.nette.org/en/coding-standard | http://flow3.typo3.org | https://github.com/propelorm/Propel2/wiki/Coding-Standards | http://developer.joomla.org/coding-standards.html | |
3 | voting | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | no | no | no | ? | yes | no | yes | |
4 | indent_type | 4 | 4 | 4 | 4 | 4 | tab | 4 | tab | tab | 2 | 4 | tab | 4 | 4 | 4 | 4 | 4 | 4 | tab | tab | 4 | tabs | |
5 | line_length_limit_soft | 75 | 75 | 75 | 75 | no | 85 | 120 | 120 | 80 | 80 | 80 | no | 100 | 80 | 80 | ? | ? | 120 | 80 | 120 | no | 150 | |
6 | line_length_limit_hard | 85 | 85 | 85 | 85 | no | no | no | no | 100 | ? | no | no | no | 100 | 100 | ? | 120 | 120 | no | no | no | no | |
7 | class_names | studly | studly | studly | studly | studly | studly | studly | studly | studly | studly | studly | lower_under | studly | lower | studly | studly | studly | studly | ? | studly | studly | studly | |
8 | class_brace_line | next | next | next | next | next | same | next | same | same | same | same | next | next | next | next | next | next | next | next | same | next | next | |
9 | constant_names | upper | upper | upper | upper | upper | upper | upper | upper | upper | upper | upper | upper | upper | upper | upper | upper | upper | upper | upper | upper | upper | upper | |
10 | true_false_null | lower | lower | lower | lower | lower | lower | lower | lower | lower | upper | lower | lower | lower | upper | lower | lower | lower | lower | lower | upper | lower | lower | |
11 | method_names | camel | camel | camel | camel | camel | camel | camel | camel | camel | camel | camel | lower_under | camel | camel | camel | camel | camel | camel | camel | camel | camel | camel | |
12 | method_brace_line | next | next | next | next | next | same | next | same | same | same | same | next | next | same | next | next | next | next | next | same | next | next | |
13 | control_brace_line | same | same | same | same | same | same | next | same | same | same | same | next | same | same | next | same | same | same | same | same | same | next | |
14 | control_space_after | yes | yes | yes | yes | yes | no | yes | yes | yes | yes | no | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | |
15 | always_use_control_braces | yes | yes | yes | yes | yes | yes | no | yes | yes | yes | no | yes | yes | yes | yes | no | yes | yes | yes | yes | yes | yes | |
16 | else_elseif_line | same | same | same | same | same | same | next | same | same | next | same | next | same | next | next | same | same | same | same | same | same | next | |
17 | case_break_indent_from_switch | 0/1 | 0/1 | 0/1 | 1/2 | 1/2 | 1/2 | 1/2 | 1/1 | 1/1 | 1/2 | 1/2 | 1/1 | 1/2 | 1/2 | 1/2 | 1/2 | 1/2 | 1/2 | 0/1 | 1/1 | 1/2 | 1/2 | |
18 | function_space_after | no | no | no | no | no | no | no | no | no | no | no | no | no | no | no | no | no | no | no | no | no | no | |
19 | closing_php_tag_required | no | no | no | no | no | no | no | no | yes | no | no | no | no | yes | no | no | no | no | no | yes | no | no | |
20 | line_endings | LF | LF | LF | LF | LF | LF | LF | LF | ? | LF | ? | LF | LF | LF | LF | ? | LF | ? | LF | LF | LF | ||
21 | static_or_visibility_first | static | ? | static | either | either | either | visibility | visibility | visibility | either | static | either | ? | visibility | ? | ? | either | either | visibility | visibility | static | ? | |
22 | control_space_parens | no | no | no | no | no | no | yes | no | no | no | no | no | no | yes | ? | no | no | no | no | no | no | no | |
23 | blank_line_after_php | no | no | no | no | yes | no | no | no | no | yes | yes | no | no | yes | ? | yes | yes | no | yes | no | yes | no | |
24 | class_method_control_brace | next/next/same | next/next/same | next/next/same | next/next/same | next/next/same | same/same/same | next/next/next | same/same/same | same/same/same | same/same/same | same/same/same | next/next/next | next/next/same | next/same/same | next/next/next | next/next/same | next/next/same | next/next/same | next/next/same | same/same/same | next/next/same | next/next/next | |
25 | ||||||||||||||||||||||||
26 | NOTES: | |||||||||||||||||||||||
27 | class_brace_line | "same" if on same line as class declaration; "next" if on next line | ||||||||||||||||||||||
28 | method_brace_line | "same" if on same line as method declaration; "next" if on next line | ||||||||||||||||||||||
29 | control_brace_line | "same" if on same line as control keyword (if, switch, etc); "next" if on next line | ||||||||||||||||||||||
30 | control_space_after | "yes" if control keywords have a space after them; "no" if not | ||||||||||||||||||||||
31 | else_elseif_line | "same" if on the same line as the previous closing brace; "next" if on the next line | ||||||||||||||||||||||
32 | case_indent_from_switch | the number of times "case" is indented from "switch" | ||||||||||||||||||||||
33 | break_indent_from_switch | the number of times "break" is indented from "switch" | ||||||||||||||||||||||
34 | function_space_after | "yes" if function names have a space after them; "no" if not | ||||||||||||||||||||||
35 | ? | not specified or not discernible | ||||||||||||||||||||||
36 | line_endings | LF or CRLF | ||||||||||||||||||||||
37 | static_or_visibility_first | "visibility" if "public static", or "static" if "static public" | ||||||||||||||||||||||
38 | control_space_parens | "yes" for "if ( expr )", no for "if (expr)" | ||||||||||||||||||||||
39 | ||||||||||||||||||||||||
40 | ||||||||||||||||||||||||
41 | ||||||||||||||||||||||||
42 | ||||||||||||||||||||||||
43 | ||||||||||||||||||||||||
44 | ||||||||||||||||||||||||
45 | ||||||||||||||||||||||||
46 | ||||||||||||||||||||||||
47 | ||||||||||||||||||||||||
48 | ||||||||||||||||||||||||
49 | ||||||||||||||||||||||||
50 | ||||||||||||||||||||||||
51 | ||||||||||||||||||||||||
52 | ||||||||||||||||||||||||
53 | ||||||||||||||||||||||||
54 | ||||||||||||||||||||||||
55 | ||||||||||||||||||||||||
56 | ||||||||||||||||||||||||
57 | ||||||||||||||||||||||||
58 | ||||||||||||||||||||||||
59 | ||||||||||||||||||||||||
60 | ||||||||||||||||||||||||
61 | ||||||||||||||||||||||||
62 | ||||||||||||||||||||||||
63 | ||||||||||||||||||||||||
64 | ||||||||||||||||||||||||
65 | ||||||||||||||||||||||||
66 | ||||||||||||||||||||||||
67 | ||||||||||||||||||||||||
68 | ||||||||||||||||||||||||
69 | ||||||||||||||||||||||||
70 | ||||||||||||||||||||||||
71 | ||||||||||||||||||||||||
72 | ||||||||||||||||||||||||
73 | ||||||||||||||||||||||||
74 | ||||||||||||||||||||||||
75 | ||||||||||||||||||||||||
76 | ||||||||||||||||||||||||
77 | ||||||||||||||||||||||||
78 | ||||||||||||||||||||||||
79 | ||||||||||||||||||||||||
80 | ||||||||||||||||||||||||
81 | ||||||||||||||||||||||||
82 | ||||||||||||||||||||||||
83 | ||||||||||||||||||||||||
84 | ||||||||||||||||||||||||
85 | ||||||||||||||||||||||||
86 | ||||||||||||||||||||||||
87 | ||||||||||||||||||||||||
88 | ||||||||||||||||||||||||
89 | ||||||||||||||||||||||||
90 | ||||||||||||||||||||||||
91 | ||||||||||||||||||||||||
92 | ||||||||||||||||||||||||
93 | ||||||||||||||||||||||||
94 | ||||||||||||||||||||||||
95 | ||||||||||||||||||||||||
96 | ||||||||||||||||||||||||
97 | ||||||||||||||||||||||||
98 | ||||||||||||||||||||||||
99 | ||||||||||||||||||||||||
100 |