A simple API to parse XBRL taxonomies

Maintainers

Package info

github.com/adrianclay/xbrl

Language:HTML

pkg:composer/adrianclay/xbrl

Statistics

Installs: 74 358

Dependents: 0

Suggesters: 0

Stars: 20

Open Issues: 2

dev-master 2015-09-22 20:05 UTC

This package is not auto-updated.

Last update: 2026-03-29 00:04:41 UTC


README

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