PHP notes » History » Version 1
  Amber Herold, 08/10/2011 12:53 PM 
  
| 1 | 1 | Amber Herold | h1. PHP notes  | 
|---|---|---|---|
| 2 | |||
| 3 | |||
| 4 | This one is a bit old, but lots of good stuff that goes beyond style. Some things are questionable. I prefer Getters/Setters over Attributes as Objects (at least how the example shows it) to allow for better error handling. I prefer no underscores in naming except for constants that use all caps...but that is only a style issue.  | 
||
| 5 | |||
| 6 | "PHP Coding Standard":http://www.dagbladet.no/development/phpcodingstandard/  | 
||
| 7 | |||
| 8 | From the Zend framework folks:  | 
||
| 9 | http://framework.zend.com/manual/en/coding-standard.html  | 
||
| 10 | |||
| 11 | An intro:  | 
||
| 12 | http://godbit.com/article/introduction-to-php-coding-standards  | 
||
| 13 | |||
| 14 | Nice Presentation:  | 
||
| 15 | http://weierophinney.net/matthew/uploads/php_development_best_practices.pdf  | 
||
| 16 | |||
| 17 | PHP Unit testing  | 
||
| 18 | http://www.phpunit.de/pocket_guide/  | 
||
| 19 | |||
| 20 | For automatically checking code against the Pear standards use CodeSniffer:  | 
||
| 21 | http://pear.php.net/package/PHP_CodeSniffer/  | 
||
| 22 | |||
| 23 | Best Practices:  | 
||
| 24 | http://www.odi.ch/prog/design/php/guide.php  |