adrianclay / xbrl
A simple API to parse XBRL taxonomies
Installs: 70 455
Dependents: 0
Suggesters: 0
Security: 0
Stars: 20
Watchers: 6
Forks: 10
Open Issues: 2
Language:HTML
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2025-07-05 20:16:01 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