Class for generating XML digital signatures using PHP