Skip to content

XBRL report from XML to JSON converter

Notifications You must be signed in to change notification settings

data-lane/xbrl-xml2json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XBRL file converter from XML to JSON format

Convert XBRL-based financial/business document from XML to JSON format, according to XBRL Consortium recommendations (xbrl-json-REC-2021-10-13).

Quickstart example

Here is an simple command line tool to convert xbrl file to json

use Datalane\XBRL\Instance;
use Datalane\JSONFile;

require __DIR__ . '/../vendor/autoload.php';

$x = new SimpleXMLElement(file_get_contents($argv[1]));


$inst = new Instance($x);
echo JSONFile::convertInstance($inst);