example repo for refactoring structured code to object oriented in php