Best Practices for PHP Baseline Follow Zend's PHP File Formatting conventions* When something goes wrong, use an Exception. Use namespaces. *When working with WordPress, use tabs instead of spaces.