dreamproduction / phiatos-onix-parser
Parser for Onix >=2.0 with extensions for Phiatos format.
1.0.35
2024-09-02 08:06 UTC
Requires
- php: >=8.0
This package is auto-updated.
Last update: 2024-10-02 08:21:28 UTC
README
PHP Library to convert XML Onix into PHP Objects.
Requirements
- XML Onix 2.0 >
- PHP 8.1 >
Install
composer require bogdan-racz/phiatos-onix-parser
Usage
$parser = new OnixParser($xmlOnix);
// If you prefer to load the XML from file.
$parser = new OnixParser('/var/www/xml_onix.xml', true);
// Loop for all products.
foreach($parser->getOnix()->getProducts() as $product);
Docs
Coming soon...