Skip to content

XBRL report from XML to JSON converter

Notifications You must be signed in to change notification settings

FabioMezzo/xbrl-xml2json

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 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-CR-2021-02-03).

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

About

XBRL report from XML to JSON converter

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%