PEAR Coding Standard
10/28
Versioning Standard
PEAR Tools
•
Indentation: 4 spaces
•
Package Naming: Foo, Foo_Bar
•
Symbol Naming:
•
Functions: Package_function()
•
Classes: Package, Package_Anotherclass
•
Methods: public(), publicMethod(), _privateMethod()
•
Globals: $_Package_globalname
•
Constants: PACKAGE_CONSTANT
•
PhpDoc Comments
•
Including PEAR Code
•
Use of PHP Short Tags
•
Handling php.ini Settings
•
CVS Rules (for cvs.php.net)