begicf/areport-dpm-xbrl

AreportDpmXBRL is a package for parsing XBRL taxonomy which is created by EU standards

v1.0-alpha 2020-07-03 06:17 UTC

This package is auto-updated.

Last update: 2024-03-22 17:55:28 UTC


README

AreportDPMXBRL is library for parsing XBRL taxonomy, which is created by DPM Architect. This standard is recommended and implemented by EU regulators such as EBA and EIOPA.

Web application Areport use this library to parse XBRL taxonomy.

More information

Demo

Areport

Quick Start

Install the library using composer

composer require begicf/areport-dpm-xbrl
<?php

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();

?>