Skip to content

Latest commit

 

History

History
41 lines (34 loc) · 1.32 KB

README.md

File metadata and controls

41 lines (34 loc) · 1.32 KB

Laravel Google Shopping

Latest Stable Version Total Downloads Latest Unstable Version License

Installation

composer require deniztezcan/laravel-google-shopping

Example

use DenizTezcan\LaravelGoogleShopping\LaravelGoogleShopping;

LaravelGoogleShopping::setTitle('Example feed');
LaravelGoogleShopping::setDescription('Example feed of the Example shop');
LaravelGoogleShopping::setLink('https://example.shop');

LaravelGoogleShopping::addItem(
	"https://example.shop/p/foo-bar",
	"SKU123",
	"Foo bar",
	"https://example.shop/images/foo-bar.png",
	"Foo bar best product",
	'new',
	99.99,
	'Foo brand',
	'6387712293758',
	[
		'country' => 'NL',
		'service' => 'PostNL - Gratis',
		'price'	  => 0
	]
);

return LaravelGoogleShopping::display();