helper class for PHP PFO