Sample code for 30+ languages & platforms
PHP

XML Digital Signatures Examples for Chilkat2 PHP