PHP code example of nekland / feed-bundle
1. Go to this page and download the library: Download nekland/feed-bundle 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/ */
nekland / feed-bundle example snippets
class Post implements ItemInterface
{
//.....
}
$container->get('nekland_feed.factory')->get('my_feed');
$this->get('nekland_feed.factory')->get('my_feed');
$factory->render('my_feed', 'renderer');
/** @var $post My\MyBundle\Entity\Post */
$factory->load('my_feed', 'loader');
$factory->get('my_feed')->add($post);