hristonev / brandsdistribution
Installs: 37
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Forks: 0
Type:tool
pkg:composer/hristonev/brandsdistribution
Requires
- guzzlehttp/guzzle: ^6.3
Requires (Dev)
- php: >=7.0
This package is not auto-updated.
Last update: 2025-10-30 03:30:53 UTC
README
Usage
require BASE_DIR. '/vendor/autoload.php';
use Parser\XMLReader;
$xml = new XMLReader(BASE_DIR. '/path-to-writeble-folder'); // Download and state files!
$xml->setCredentials(
'https://www.brandsdistribution.com/restful/export/api/products.xml', // endpoint
'username',
'password'
);
$xml->download();
$xml->parse();
while ($node = $xml->getItem()){
print_r($node);die; // Dump first node of collection.
}