Better PHP

Collection of my best practices for writing application in PHP

General

  1. AutoLoader Auto Loader
  2. IdeTips IDE tips
  3. Caching Caching
  4. Libs3rdParty 3rd party libraries
  5. IncludePath Include path
  6. Deployment Deployment (live/debug env)
  7. ErrorHandling Error handling, exceptions
  8. Arrays

Object oriented

  1. Iterators Iterators
  2. SaveRestoreObjects Save/Restore objects
  3. LoadSaveDataDbOoWay Load/Save data db

Design patterns

Practical examples of usage design patterns in PHP application

  1. Bridge
  2. Command
  3. Decorator
  4. Flyweight
  5. Mediator
  6. Memento
  7. Prototype
  8. Proxy
  9. State
  10. Strategy
  11. Template
  12. Visitor