PHPackages                             rohos/rsyayml - 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. rohos/rsyayml

ActiveLibrary[API Development](/categories/api)

rohos/rsyayml
=============

A package for generating Yandex YML

1.0.0(5y ago)25MITPHPPHP &gt;=7.1.0CI failing

Since Jun 1Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Rohos/rsyayml)[ Packagist](https://packagist.org/packages/rohos/rsyayml)[ RSS](/packages/rohos-rsyayml/feed)WikiDiscussions master Synced 1mo ago

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

RsYaYml
=======

[](#rsyayml)

A package for generating [Yandex YML](https://yandex.ru/support/webmaster/goods-prices/technical-requirements.html)

### 1. Installation

[](#1-installation)

```
composer require rohos/rsyayml
```

### 2. Require:

[](#2-require)

```
"require": {
    "php": ">=7.1.0",
    "ext-dom": "*"
}
```

### 3. Offer types:

[](#3-offer-types)

- OfferVendorModel ([Произвольный товар (vendor.model)](https://yandex.ru/support/webmaster/goods-prices/technical-requirements.html#tag_11__vendor-model))
- OfferBook ([Книги (book)](https://yandex.ru/support/webmaster/goods-prices/technical-requirements.html#tag_11__book))
- OfferAudioBook ([Аудиокниги (audiobook)](https://yandex.ru/support/webmaster/goods-prices/technical-requirements.html#tag_11__audiobook))
- OfferArtistTitleAudio ([Музыкальная продукция (artist.title)](https://yandex.ru/support/webmaster/goods-prices/technical-requirements.html#tag_11__artist-title))
- OfferArtistTitleVideo ([Видео продукция (artist.title)](https://yandex.ru/support/webmaster/goods-prices/technical-requirements.html#tag_11__artist-title))
- OfferTour ([Туры (tour)](https://yandex.ru/support/webmaster/goods-prices/technical-requirements.html#tag_11__tour))
- OfferEventTicket ([Билеты на мероприятие (event-ticket)](https://yandex.ru/support/webmaster/goods-prices/technical-requirements.html#tag_11__event-ticket))
- OfferSimple ([Упрощенное описание](https://yandex.ru/support/webmaster/goods-prices/technical-requirements.html#tag_11__base))

### 4. Example:

[](#4-example)

```
$filePath = 'test.xml';
$yml = new RsYaYml($filePath);
$yml->createBaseShopElements(
    'PrinterShop',
    'ООО PrinterShop',
    'https://some-printer-shop-url.com'
);

$yml->addCategory(1, 'Принтеры');
$yml->addCategory(2, 'Струйные принтеры', 1);
$yml->addCurrency('RUR');

$yml->createFile();

$yml->addOffer(
    (new OfferVendorModel('id-1', true))
        ->setUrl('https://some-printer-shop-url.com/catalog/product-id-1')
        ->setPrice(200)
        ->setCurrencyId('RUR')
        ->setCategoryId(2)
        ->setDescription('Description')
        ->setModel('Deskjet D2663')
        ->setTypePrefix('Принтер')
        ->setSalesNote('Минимум 10')
        ->setManufacturerWarranty(true)
        ->setParam('Максимальный формат', 'А4')
        ->setParam('Количество страниц в месяц', 1000, 'стр')
        ->setDownloadable(true)
        ->setCountryOfOrigin('Россия')
        ->setVendor('Yandex')
        ->setVendorCode('CH366C')
        ->setDelivery(true)
        ->setDeliveryOptions(100)
);

$yml->saveFile();
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

2175d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/05b928842aabd2481f3e9fa72761f2125a33650afdf7a33a70679031c274b21f?d=identicon)[Rohos](/maintainers/Rohos)

---

Top Contributors

[![Rohos](https://avatars.githubusercontent.com/u/5276140?v=4)](https://github.com/Rohos "Rohos (11 commits)")

---

Tags

ymlyandexmarketrsyayml

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rohos-rsyayml/health.svg)

```
[![Health](https://phpackages.com/badges/rohos-rsyayml/health.svg)](https://phpackages.com/packages/rohos-rsyayml)
```

###  Alternatives

[bukashk0zzz/yml-generator

YML (Yandex Market Language) file generator

116186.3k](/packages/bukashk0zzz-yml-generator)[yandex/geo

PHP-library for interactions with geo-coding Yandex.Maps

117309.0k3](/packages/yandex-geo)[biplane/yandex-direct

PHP library for Yandex.Direct API

51172.8k2](/packages/biplane-yandex-direct)[sokolnikov911/yandex-turbo-pages

PHP7 Yandex Turbo Pages RSS feed generator

4686.9k](/packages/sokolnikov911-yandex-turbo-pages)[lireincore/ymlparser

YML (Yandex Market Language) parser

2429.6k1](/packages/lireincore-ymlparser)[yandex/locator

PHP-library for interactions with Yandex.Locator

2011.0k](/packages/yandex-locator)

PHPackages © 2026

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