wearepixel / laravel-google-shopping-feed
Laravel Google Shopping Feed
Installs: 6 509
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 0
Forks: 2
Open Issues: 2
Requires
- illuminate/support: 8.*|9.*|10.*|11.*
- spatie/array-to-xml: 2.8.*|3.*.*
README
A simple package to easily create an XML feed for Google Merchant Center to parse and retrieve your products on a frequent basis.
We recommend adding this to an API controller and generating it on the fly each time so you can be sure your products are always up to date within your merchant center.
Installation
composer require wearepixel/laravel-google-shopping-feed
Example
use Wearepixel\LaravelGoogleShoppingFeed\LaravelGoogleShoppingFeed; $feed = LaravelGoogleShopping::init( 'Product Feed', 'App product Feed', 'https://mystore.com' ); $feed->addItem([ 'id' => 'item_001', 'title' => 'Blue Nikes', 'link' => 'https://mystore.com/products/blue-nikes', 'g:image_link' => 'https://mystore.com/images/blue-nikes-001.jpg', 'g:price' => 29.99, ]); return $feed->generate();