Ed. Added php pattern strategy.