PHPackages                             masterflash-ru/feed-yanews - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. masterflash-ru/feed-yanews

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

masterflash-ru/feed-yanews
==========================

генератор ленты Яндекс новостей

068PHP

Since Jan 6Pushed 6y ago1 watchersCompare

[ Source](https://github.com/masterflash-ru/FeedYaNews)[ Packagist](https://packagist.org/packages/masterflash-ru/feed-yanews)[ RSS](/packages/masterflash-ru-feed-yanews/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

FeedYaNews
==========

[](#feedyanews)

Для яндекс-новости формирует RSS канал с полями для яндекса. Все работает по образу и подобию штатного Feed от ZF3. Убраны не нужные расширения и устаревший менеджер

Требования к ленте

Установка composer require masterflash-ru/feed-yanews

пример использования:

```
use Mf\FeedYaNews\Writer\Feed;

        $feed = new Feed;
        $feed->setTitle("автопортал За рулем Кубань");
        $feed->setLanguage('ru');

        $feed->setDescription("Новости");
        $feed->setLink('https://zrkuban.ru');
        $feed->addAuthor([
            'name'  => 'Иванов Иван',
            'email' => 'paddy@example.com',
            'uri'   => 'https://zrkuban.ru',
        ]);

        //Если нужно учитывать и часовой пояс, то задавать дату можно только так
        //если передавать время в виде целого числа, то пояс не будет учитываться
        $feed->setDateModified(new \DateTime("2019-09-08 0:39:23"));

        //логотип
        $feed->setImage([
            "uri"=>"https://www.zrkuban.ru/App/View/images/logo_100_100.jpg",
            "title" =>"автопортал За рулем Кубань",
            "link"=>"https://zrkuban.ru"
        ]);

        $entry = $feed->createEntry();
        $entry->setTitle('Заголовок статьи');
        $entry->setLink('http://www.example.com/all-your-base-are-belong-to-us');
        $entry->setPdaLink('http://M.example.com/MOBILA');
        $entry->setAmpLink('http://AMP.example.com/MOBILA');
        $entry->setGenre("article");

        $entry->addAuthor([
            'name'  => 'Paddy',
            'email' => 'paddy@example.com',
            'uri'   => 'http://www.example.com',
        ]);

        $entry->setDateCreated(time());

        //раздел, например, новости
        $entry->addCategory([
                    'term'=>"news",
                ]);

        //медиафайлы, можно прикреплять множество
        $entry->addEnclosure([
            "uri"=>"https://www.zrkuban.ru/App/View/images/logo_100_100.jpg",
            "type"=>"image/jpeg",
            "length"=>"12345"
        ]);
        $entry->addEnclosure([
            "uri"=>"https://www.zrkuban.ru/App/View/images/logo_100_100.jpg",
            "type"=>"image/jpeg",
            "length"=>"54321"
        ]);

        $entry->setDescription('Анонс статьи ');
        $entry->setContent(
            'Подробно статья Подробно статья Подробно статья Подробно статья Подробно статья '
        );

        //добавить в ленту элемент статьи
        $feed->addEntry($entry);

        //вывод в XML, заголовки в ответ сервера не добавляются
        echo $feed->export();
```

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/7bc33a135cba93de194077b649f60f0bb234607e9619d5a4cea8addfb3f69b07?d=identicon)[masterflash-ru](/maintainers/masterflash-ru)

---

Top Contributors

[![sxqsxq](https://avatars.githubusercontent.com/u/13969496?v=4)](https://github.com/sxqsxq "sxqsxq (13 commits)")

### Embed Badge

![Health badge](/badges/masterflash-ru-feed-yanews/health.svg)

```
[![Health](https://phpackages.com/badges/masterflash-ru-feed-yanews/health.svg)](https://phpackages.com/packages/masterflash-ru-feed-yanews)
```

###  Alternatives

[selvinortiz/doxter

Slick markdown editor and smart text parser.

249.0k](/packages/selvinortiz-doxter)[mateffy/laravel-codebase-mcp

An MCP server to give Cursor, Aider, etc. the ability to introspect your Laravel codebase directly, by querying for your models, views, routes and classes without raw file search.

231.6k](/packages/mateffy-laravel-codebase-mcp)

PHPackages © 2026

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