1. Go to this page and download the library: Download uhin/ccda-parser-library 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/ */
// The XML data is stored as a \SimpleXMLElement object
$ccdaDocument->simpleXmlElement
// The data object converts that XML data into an array (i.e. dictionary)
$ccdaDocument->data
// Get the data as an array (i.e. dictionary)
$ccdaDocument->toArray()
// Get the data as a \stdClass object
$ccdaDocument->toStdClass()
// Get the data as a JSON-encoded string
$ccdaDocument->toJson()
// Also returns a JSON-encoded string (used for type-casting to a string)
$ccdaDocument->__toString()
(string) $ccdaDocument