Ed. Added php pattern mediator.