Skip to content

matthewaprice/Google-Base-Feed-Parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

--------------------
2011-12-19

Google Base Feed Parser

This will take a products feed and convert it to an array for use however you see fit.

You can pick and choose which fields it will put into the array

example usage:

$feed = new GoogleBaseFeedParser( 'http://www.domain.com/googlebasefeed.xml' );
$fields = array( 'title','link','description','id','brand','image_link','model_number','google_product_category','price' );
$feed->setFieldsToRetrieve( $fields );		
$results = $feed->getFeedResults();								

foreach ( $results as $result ) {
	echo "<strong>" . $result['title'] . "</strong><br>";
	echo $result['description'] . "<br><br>";
	
}
--------------------

About

Takes a google base feed for online stores and returns an array for use

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages