Class for OpenBadges development in PHP