adrianclay / xbrl
A simple API to parse XBRL taxonomies
Installs: 55 908
Dependents: 0
Suggesters: 0
Security: 0
Stars: 18
Watchers: 7
Forks: 10
Open Issues: 2
Language:HTML
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2024-04-13 14:02:34 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