-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+ small fixed in Feed.php
- Loading branch information
Deniz Tezcan
committed
Sep 6, 2019
1 parent
d018130
commit 672ac6c
Showing
2 changed files
with
44 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,41 @@ | ||
# laravel-google-shopping | ||
Laravel Google Shopping package | ||
Laravel Google Shopping | ||
============== | ||
|
||
[![Latest Stable Version](https://poser.pugx.org/deniztezcan/laravel-google-shopping/v/stable)](https://packagist.org/packages/deniztezcan/laravel-google-shopping) | ||
[![Total Downloads](https://poser.pugx.org/deniztezcan/laravel-google-shopping/downloads)](https://packagist.org/packages/deniztezcan/laravel-google-shopping) | ||
[![Latest Unstable Version](https://poser.pugx.org/deniztezcan/laravel-google-shopping/v/unstable)](https://packagist.org/packages/deniztezcan/laravel-google-shopping) | ||
[![License](https://poser.pugx.org/deniztezcan/laravel-google-shopping/license)](https://packagist.org/packages/deniztezcan/laravel-google-shopping) | ||
|
||
## Installation | ||
|
||
``` | ||
composer require deniztezcan/laravel-google-shopping | ||
``` | ||
|
||
## Example | ||
```php | ||
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(); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters