We need somebody to write us a class in PHP that generates a valid XMLDsig for a XML object (SimpleXMLObject and DOMDocument objects), and at the same time works in reverse (i.e. validates that a XMLDsig is valid for a document that contains the signature).
As mentioned, this should be a class into which we parse the XML DOM object, along with a certificate.