library xbrl
A simple API to parse XBRL taxonomies
adrianclay/xbrl
A simple API to parse XBRL taxonomies
- Tuesday, September 22, 2015
- by adrianclay
- Repository
- 5 Watchers
- 13 Stars
- 719 Installations
- HTML
- 0 Dependents
- 0 Suggesters
- 9 Forks
- 1 Open issues
- 1 Versions
- 11 % Grown
XBRL
, (*1)
A simple API to parse XBRL taxonomies in PHP., (*2)
Usage
A taxonomy is a set of XML files:, (*3)
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, (*4)
http://www.example.com/farming/: CowsSlaughtered
http://www.example.com/farming/: CalvesBorn