A simple helper class for standalone PHP scripts