PHP code example of tiimepdp / cdar
1. Go to this page and download the library: Download tiimepdp/cdar library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
tiimepdp / cdar example snippets
// Building CDAR message
$cdar = new \TiimePDP\CrossDomainAcknowledgementAndResponse\CrossDomainAcknowledgementAndResponse(
// ... initialize with data
);
// Serializing CDAR message to XML
$serializer = new \TiimePDP\CrossDomainAcknowledgementAndResponse\Serializer\Serializer();
$xmlContent = $serializer->serialize($cdar);
echo $xmlContent;