begicf/areport-dpm-xbrl

AreportDpmXBRL 是一个解析由欧盟标准创建的 XBRL 分类法的包

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

This package is auto-updated.

Last update: 2024-09-22 19:01:23 UTC


README

AreportDPMXBRL 是由 DPM 架构师创建的用于解析 XBRL 分类法的库。这个标准被欧盟监管机构如 EBA 和 EIOPA 推荐和实施。

Web 应用程序 Areport 使用此库来解析 XBRL 分类法。

更多信息

演示

Areport

快速开始

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

?>