Marco Pivetta (Ocramius)

The Proxy Pattern in PHP

Last week, I spoke about Proxies and the Proxy Pattern (in OOP) at the PHP User Group Frankfurt.

You can find my slides at

The covered topics were:

  • Where and when to use proxies
  • Lazy Loading proxies
  • Virtual object proxy
  • Value Holder proxies
  • Ghost objects
  • Remote object proxies
  • Smart reference proxies
  • Null object proxies
  • Requirements of a proxy generator implementation

If you have suggestions or spot any problems/mistakes, please open an issue or a pull request at

Tags: proxy patterns, php, oop