silici0 / googleparserfeed
Parser in PHP to Google Merchant Feed
Installs: 5 691
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 2
Forks: 4
Open Issues: 3
This package is auto-updated.
Last update: 2024-11-18 23:32:26 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/