PHP code example of wearepixel / laravel-google-shopping-feed
1. Go to this page and download the library: Download wearepixel/laravel-google-shopping-feed library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
wearepixel / laravel-google-shopping-feed example snippets
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();