Classes for building reports in PHP