Some popular design patterns implemented in PHP