PHP code example of oldmine / google-merchant-feed-generator

1. Go to this page and download the library: Download oldmine/google-merchant-feed-generator 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/ */

    

oldmine / google-merchant-feed-generator example snippets

`
PHP >= 5.3
Composer (optional)
`
`
$generator->printFeed() // Print feed in current document
$generator->saveFeed($file) // Save feed to $file
$generator->getFeed() // Get feed as string