OOP example app in PHP