silici0/googleparserfeed

There is no license information available for the latest version (dev-master) of this package.

Parser in PHP to Google Merchant Feed

dev-master 2020-11-18 15:01 UTC

This package is auto-updated.

Last update: 2024-12-18 23:39:14 UTC


README

splio api access via PHP

Parse google merchant feed to array PHP

Installation

composer require silici0/googleparserfeed:dev-master

Usage example

require "vendor/autoload.php";
use silici0\GoogleParserFeed\ParserGoogleFeed;

$buffer = file_get_contents("http://www.domain.com/googleshopping.xml");

$feed = new ParserGoogleFeed($buffer, LIBXML_NOCDATA);
print_r($feed->toArray());

Contribution

https://stackoverflow.com/questions/26400993/resolve-namespaces-with-simplexml-regardless-of-structure-or-namespace https://hakre.wordpress.com/2013/07/10/simplexml-and-json-encode-in-php-part-iii-and-end/