Download the PHP package php-programmist/yandex-turbo-rss-generator-bundle without Composer
On this page you can find all versions of the php package php-programmist/yandex-turbo-rss-generator-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download php-programmist/yandex-turbo-rss-generator-bundle
More information about php-programmist/yandex-turbo-rss-generator-bundle
Files in php-programmist/yandex-turbo-rss-generator-bundle
Package yandex-turbo-rss-generator-bundle
Short Description Bundle for Sumfony 4-5 for generation RSS feed for Yandex Turbo pages.
License MIT
Informations about the package yandex-turbo-rss-generator-bundle
YandexTurboRssGeneratorBundle
This bundle for Sumfony 4-5 provides service witch allow you to generate RSS feed for Yandex Turbo pages.
Installation
Before use follow Configuration section instructions
Configuration
Create file config/packages/yandex_turbo_rss_generator.yaml:
In param yandex_id you need to specify ID of your Yandex.Metrika counter for current site
date_format - is string of date format for PHP function date
Usage
First you need to create class that implements PhpProgrammist\YandexTurboRssGeneratorBundle\Adapters\RssAdapterInterface. That class must implement method getItems, which provides array of RssItem objects. Each RssItem objects corresponds to one turbo-page.
You may want extend PhpProgrammist\YandexTurboRssGeneratorBundle\Adapters\RssBaseAdapter class.
Example of adapter:
This adapter can transform collection of Content entities ($original_items) to array of RssItem.
Also you need create BasePage object (PhpProgrammist\YandexTurboRssGeneratorBundle\Adapters\BasePage) with information about parent of turbo-pages. You need to specify Title, Description and Path to parent-page
All versions of yandex-turbo-rss-generator-bundle with dependencies
symfony/filesystem Version ^4.4 || ^5.0
symfony/dependency-injection Version ^4.4 || ^5.0
symfony/config Version ^4.4 || ^5.0
symfony/http-kernel Version ^4.4 || ^5.0
symfony/yaml Version ^4.4 || ^5.0
doctrine/dbal Version ^2.10
symfony/twig-bundle Version ^4.4 || ^5.0