magrao / bibliomundi-onix-parser
Parser for Onix >=2.0
Installs: 215
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 7
pkg:composer/magrao/bibliomundi-onix-parser
Requires
- php: >=5.4.0
This package is not auto-updated.
Last update: 2025-12-08 15:02:00 UTC
README
PHP Library to convert XML Onix into PHP Objects.
Requirements
- XML Onix 2.0 >
- PHP 5.4 >
Install
Simple require the autoload.php file that is inside the src folder. Ex: include"src/autoload.php".
If you user composer simple require magrao/bibliomundi-onix-parse.
Usage
$parser = new BBMParser\OnixParser($xmlOnix);
//If you prefer load from file
$parser = new BBMParser\OnixParser('/var/www/xml_onix.xml', true);
//Loop for all products
foreach($parser->getOnix()->getProducts() as $product);
//Loop for all only available for sell products
foreach($parser->getOnix()->getProductsAvailable() as $productAvailable);
Docs
Coming soon...