cicoph / xbrl

A simple API to parse XBRL taxonomies in PHP.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

XBRL

Build Status

A simple API to parse XBRL taxonomies in PHP.

Usage

A taxonomy is a set of XML files:

use adrianclay\xbrl\Taxonomy\Set;

$taxonomy = new Set;
$taxonomy->import( 'Path to taxonomy', 'farming.xsd' );
foreach( $taxonomy->getConcepts() as $concept ) {
    echo $concept->getNamespace(), ": ", $concept->getName(), "\n";
}

Might give

http://www.example.com/farming/: CowsSlaughtered
http://www.example.com/farming/: CalvesBorn

About

A simple API to parse XBRL taxonomies in PHP.

License:MIT License


Languages

Language:HTML 73.4%Language:PHP 26.6%