adrianclay / xbrl
A simple API to parse XBRL taxonomies
dev-master
2015-09-22 20:05 UTC
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2026-03-29 00:04:41 UTC
README
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