silici0 / googleparserfeed
Parser in PHP to Google Merchant Feed
Installs: 5 695
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 2
Forks: 4
Open Issues: 3
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/