Example PHP code for interpreting the Product Feed
Clone or download
Latest commit c2a5b58 Mar 14, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Tests Fixed failing Unit test Mar 13, 2018
resources MAR-1591 Upgrade xsd in github Aug 22, 2017
src Cleanup and add more explanation Mar 17, 2017
.gitignore Initial version Mar 15, 2017
README.md Cleanup and add more explanation Mar 17, 2017
composer.json Cleanup and add more explanation Mar 17, 2017
phpunit.xml Initial version Mar 15, 2017

README.md

bolcom-partnerprogramma-feed-php-example

Example PHP code for interpreting the Product Feed.

This example shows how the Product Feed can be read with PHP. Supported PHP versions: 5.1.0 or higher, including PHP 7.

example:

php -f src/LoadXml.php

Product Feeds can be pretty large (gigabytes). For this reason, this example does not load the whole XML in memory. We use XMLReader to read through the XML file step by step.

For running the tests:

phpunit Tests/

In the resources folder the XSD files can be found. The file product-feed-1.0.xsd is the starting point there (which wraps the product-1.0.xsd).