IBM Developerworks have published two articles on writing high-quality PHP code. The first article looks at
good habits for writing secure code, which mostly boils down to making sure that input data is validated, and the second article covers
object oriented programming, covers public accessors, error handling, interfaces and loose coupling.