PHPackages                             sokolnikov911/yandex-turbo-pages - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. sokolnikov911/yandex-turbo-pages

ActiveLibrary[API Development](/categories/api)

sokolnikov911/yandex-turbo-pages
================================

PHP7 Yandex Turbo Pages RSS feed generator

v1.1.2(7y ago)4686.9k↓29.8%11[1 issues](https://github.com/sokolnikov911/yandex-turbo-pages/issues)MITPHPPHP &gt;=7.0

Since Nov 25Pushed 3y ago11 watchersCompare

[ Source](https://github.com/sokolnikov911/yandex-turbo-pages)[ Packagist](https://packagist.org/packages/sokolnikov911/yandex-turbo-pages)[ Docs](https://github.com/sokolnikov91/yandex-turbo-pages)[ RSS](/packages/sokolnikov911-yandex-turbo-pages/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (2)Versions (9)Used By (0)

PHP7 Yandex Turbo Pages RSS feed generator
==========================================

[](#php7-yandex-turbo-pages-rss-feed-generator)

[![Latest Stable Version](https://camo.githubusercontent.com/39aad5fa802346935bd848faa24f2721f2ea5e6963e1fcfb3f35aceccbbcb70c/68747470733a2f2f706f7365722e707567782e6f72672f736f6b6f6c6e696b6f763931312f79616e6465782d747572626f2d70616765732f762f737461626c65)](https://packagist.org/packages/sokolnikov911/yandex-turbo-pages) [![Total Downloads](https://camo.githubusercontent.com/14d422b3117f43165bb0890e6c3c4149c36dc652931434051f7fd3286cdb9830/68747470733a2f2f706f7365722e707567782e6f72672f736f6b6f6c6e696b6f763931312f79616e6465782d747572626f2d70616765732f646f776e6c6f616473)](https://packagist.org/packages/sokolnikov911/yandex-turbo-pages) [![Latest Unstable Version](https://camo.githubusercontent.com/1b21db09d99e93ca5b9b52123dffeef132ab4329d7be83ed7c0c4ca33f1a4367/68747470733a2f2f706f7365722e707567782e6f72672f736f6b6f6c6e696b6f763931312f79616e6465782d747572626f2d70616765732f762f756e737461626c65)](https://packagist.org/packages/sokolnikov911/yandex-turbo-pages) [![composer.lock](https://camo.githubusercontent.com/9215a20ba50262e872534a44ec50dc852c3d0681a98bc15c4c109e8842544585/68747470733a2f2f706f7365722e707567782e6f72672f736f6b6f6c6e696b6f763931312f79616e6465782d747572626f2d70616765732f636f6d706f7365726c6f636b)](https://packagist.org/packages/sokolnikov911/yandex-turbo-pages) [![PHPPackages Rank](https://camo.githubusercontent.com/2dbcc8b329fbcb4c7214b8518629a2ae088cf3d85fdc80d8140e8e8df3268a37/687474703a2f2f7068707061636b616765732e6f72672f702f736f6b6f6c6e696b6f763931312f79616e6465782d747572626f2d70616765732f62616467652f72616e6b2e737667)](http://phppackages.org/p/sokolnikov911/yandex-turbo-pages) [![PHPPackages Referenced By](https://camo.githubusercontent.com/321cb8a5f5b8c1efd5c9033896f81afe439c022dbede7ffae229a6e9c497a2bc/687474703a2f2f7068707061636b616765732e6f72672f702f736f6b6f6c6e696b6f763931312f79616e6465782d747572626f2d70616765732f62616467652f7265666572656e6365642d62792e737667)](http://phppackages.org/p/sokolnikov911/yandex-turbo-pages) [![StandWithUkraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/badges/StandWithUkraine.svg)](https://github.com/vshymanskyy/StandWithUkraine/blob/main/docs/README.md)Travis CI[![Build Status](https://camo.githubusercontent.com/63b8575c32a5ed8865e122557119d96ce50fbcb70e81fd657d5e5e3c2a7b9c40/68747470733a2f2f7472617669732d63692e6f72672f736f6b6f6c6e696b6f763931312f79616e6465782d747572626f2d70616765732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/sokolnikov911/yandex-turbo-pages)Scrutinizer CI[![Build Status](https://camo.githubusercontent.com/63f51d319be5c72ceb924a7b8551c177f635ab4e536008d3385bcc66e89bbca4/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f736f6b6f6c6e696b6f763931312f79616e6465782d747572626f2d70616765732f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/sokolnikov911/yandex-turbo-pages/build-status/master) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/b04b0e6c12883f5cfd69adce36283f1b34bea780ae46eeee579ac309d98d2083/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f736f6b6f6c6e696b6f763931312f79616e6465782d747572626f2d70616765732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/sokolnikov911/yandex-turbo-pages/?branch=master) [![Code Coverage](https://camo.githubusercontent.com/4704ede7738cbe5e57685a7eb6c0ebe3b5f3b63069bd50f42e94df399973deae/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f736f6b6f6c6e696b6f763931312f79616e6465782d747572626f2d70616765732f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/sokolnikov911/yandex-turbo-pages/?branch=master)Russian version of README you can find here: [README\_RU.md](https://github.com/sokolnikov911/yandex-turbo-pages/blob/master/README_RU.md).

Yandex Turbo Pages valid RSS feed generator for PHP 7+. In this version type hinting used, so you need at least PHP 7.0.

Version for PHP 5.4 you can find [here](https://github.com/sokolnikov911/yandex-turbo-pages-php5).

Examples
--------

[](#examples)

This example you can find in `examples/example.php`

```
// creates Feed with all needed namespaces
$feed = new Feed();

// creates Channel with description and one ad from Yandex Ad Network
$channel = new Channel();
$channel
    ->title('Channel Title')
    ->link('http://blog.example.com')
    ->description('Channel Description')
    ->language('ru')
    ->adNetwork(Channel::AD_TYPE_YANDEX, 'RA-123456-7', 'first_ad_place')
    ->appendTo($feed);

// adds Google Analytics to feed
$googleCounter = new Counter(Counter::TYPE_GOOGLE_ANALYTICS, 'XX-1234567-89');
$googleCounter->appendTo($channel);

// adds Yandex Metrika to feed
$yandexCounter = new Counter(Counter::TYPE_YANDEX, 12345678);
$yandexCounter->appendTo($channel);

// creates first page of feed with link and enabled turbo, description and other content, and appends this page to channel
$item = new Item();
$item
    ->title('Thirst page!')
    ->link('http://www.example.com/page1.html')
    ->author('John Smith')
    ->category('Technology')
    ->turboContent('Some content here!Second content string.')
    ->pubDate(strtotime('Tue, 21 Aug 2012 19:50:37 +0900'))
    ->appendTo($channel);

// creates list of related pages
$relatedItemsList = new RelatedItemsList();

// adds link to first related page
$relatedItem = new RelatedItem('Related article 1', 'http://www.example.com/related1.html');
$relatedItem->appendTo($relatedItemsList);

// adds link to second related page with image
$relatedItem = new RelatedItem('Related article 2', 'http://www.example.com/related2.html',
    'http://www.example.com/related2.jpg');
$relatedItem->appendTo($relatedItemsList);

// appends list of related links to first page
$relatedItemsList
    ->appendTo($item);

// creates another one page with disabled turbo
$item = new Item(false);
$item
    ->title('Second page!')
    ->link('http://www.example.com/page2.html')
    ->author('John Smith')
    ->category('Technology')
    ->turboContent('Yet another content here!')
    ->pubDate(strtotime('Tue, 21 Aug 2012 19:50:37 +0900'))
    ->appendTo($channel);

// displays the generated feed
echo $feed;
```

For generating content for turbo items you can use `Content` helper. For example:

```
// generate header
$menuArray = [
    ['url' => 'http://example/page1.html', 'title' => 'Page title 1'],
    ['url' => 'http://example/page2.html', 'title' => 'Page title 2']
];
$header = Content::header('Main title', 'Second title',
    'http://example.com/image1.jpg', 'Image description', $menuArray);
```

At this time you can use helpers for generate next elements:

- page header including menu;
- image;
- images gallery;
- share buttons;
- link or phone button;
- comments;
- rating;
- accordion;
- video from own server;
- video from external server;
- ad block position element;
- media-content with slider;
- additional content block;
- search input;
- modal contact form;
- inline contact form.

Examples of using helpers you can find in `examples/content_helpers.php`.

Installing
----------

[](#installing)

```
# Install Composer
curl -sS https://getcomposer.org/installer | php
```

Next, run the Composer command to install the latest stable version of **yandex-turbo-pages**

```
php composer.phar require sokolnikov911/yandex-turbo-pages
```

After installing, you need to require Composer's autoloader:

```
require 'vendor/autoload.php';
```

You can then later update **yandex-turbo-pages** using composer:

```
composer.phar update
```

Requirements
------------

[](#requirements)

This Yandex Trurbo Pages RSS feed generator requires at least PHP 7.0 (yeahh, type hinting!).

License
-------

[](#license)

[![License](https://camo.githubusercontent.com/4bec8c38ee60bb32b5530a765def436e89497dc47fc922354dd04cb681c63c1f/68747470733a2f2f706f7365722e707567782e6f72672f736f6b6f6c6e696b6f763931312f79616e6465782d747572626f2d70616765732f6c6963656e7365)](https://packagist.org/packages/sokolnikov911/yandex-turbo-pages)

This library is licensed under the MIT License.

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity43

Moderate usage in the ecosystem

Community14

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~50 days

Recently: every ~87 days

Total

8

Last Release

2741d ago

Major Versions

v0.9.1 → v1.0.12017-11-27

### Community

Maintainers

![](https://www.gravatar.com/avatar/97a1cefec9fcbf213bb9a2db1f26e21b6ccb750984727256dd9833c5b27f25ae?d=identicon)[sokolnikov911](/maintainers/sokolnikov911)

---

Top Contributors

[![sokolnikov911](https://avatars.githubusercontent.com/u/11427142?v=4)](https://github.com/sokolnikov911 "sokolnikov911 (98 commits)")

---

Tags

phpphp7rssrss-feedrss-feed-generatoryandexyandex-turboyandex-turbo-pagesphpfeedrssgeneratorwriteryandexturbo

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sokolnikov911-yandex-turbo-pages/health.svg)

```
[![Health](https://phpackages.com/badges/sokolnikov911-yandex-turbo-pages/health.svg)](https://phpackages.com/packages/sokolnikov911-yandex-turbo-pages)
```

###  Alternatives

[suin/php-rss-writer

Yet another simple RSS writer library for PHP 5.4 or later.

2651.4M20](/packages/suin-php-rss-writer)[laminas/laminas-feed

provides functionality for creating and consuming RSS and Atom feeds

16649.2M47](/packages/laminas-laminas-feed)[debril/rss-atom-bundle

RSS / Atom and JSONFeed support for Symfony

1381.3M2](/packages/debril-rss-atom-bundle)[rumenx/php-feed

Framework-agnostic PHP Feed generator for Laravel, Symfony, and more.

3652.3k](/packages/rumenx-php-feed)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
