Skip to content

matthewaprice/Google-Base-Feed-Parser

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
--------------------
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