PHP code example of begicf / areport-dpm-xbrl
1. Go to this page and download the library: Download begicf/areport-dpm-xbrl 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/ */
begicf / areport-dpm-xbrl example snippets
use AReportDpmXBRL\Library\Data;
use AReportDpmXBRL\Render;
//parse taxonomy
$tax = Data::getTax($table_path); //set table absolute path
//render HTML form
$render = new Render($tax);
/*
* @return array [
* 'table' => (string) Table HTMl Form,
* 'sheets' => (string) Sheets HTML Form
* 'tableName' => (string) Table Name
* 'aspectNode' => (bool) Aspect Axis
* 'tableID'=> (string) Table ID
* 'groups' => (string) Table group
* ]
*/
$HTMLForm = $render->renderHtmlForm();