jongotlin / product-feed-adapter
Adapter for product feeds
1.0.0
2016-11-16 20:33 UTC
Requires
- php: >=5.3.0
This package is auto-updated.
Last update: 2024-12-20 22:22:42 UTC
README
Use this adapter with any product feed from Adrecord, TradeDoubler, Zanox, Adtraction or Adsettings.
$feed = file_get_contents('http://feed.adrecord.com/foo.json?id=bar');
$productFeedAdapter = new ProductFeedAdapter($feed);
$network = $productFeedAdapter->getNetwork();
foreach ($network->getProducts(0, 10) as $product) {
echo $product->getTrackingUrl();
}