PHP code example of sylapi / feed-domodi
1. Go to this page and download the library: Download sylapi/feed-domodi 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/ */
sylapi / feed-domodi example snippets
$feedGenerator = new Sylapi\Feeds\FeedGenerator();
$feedGenerator->setFeed(new Sylapi\Feeds\Domodi\Feed(
Sylapi\Feeds\Parameters::create([])
));
$product = new \Sylapi\Feeds\Models\Product();
//...
$feedGenerator->appendProduct($product);
$feedGenerator->appendProduct($product);
//...
$feedGenerator->appendProduct($product);
//...
$feedGenerator->save();
echo $feedGenerator->filePath();