PHPackages                             and/yandex\_yml - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. and/yandex\_yml

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

and/yandex\_yml
===============

Yandex Market YML generator

0.9(12y ago)0138MITPHP

Since Aug 28Pushed 12y ago2 watchersCompare

[ Source](https://github.com/logical-and/yandex_yml)[ Packagist](https://packagist.org/packages/and/yandex_yml)[ Docs](http://www.symfony-project.org/plugins/sfYandexYMLPlugin/0_1_2)[ RSS](/packages/and-yandex-yml/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (2)Used By (0)

```
sfYandexYML plugin
==============

Some classes helping to create XML files for the [Yandex.Market service](http://market.yandex.ru).
Description of the YML language [http://partner.market.yandex.ru/legal/tt/](http://partner.market.yandex.ru/legal/tt/).

Installation
------------

  * Install the plugin

        $ symfony plugin:install sfYandexYMLPlugin

  * Clear cache

        $ symfony cc

Usage
-----

    [PHP]

    // creating a YML document
    $yml = new sfYandexYML(
        'My eShop',
        'OOO Roga&Kopita',
        'http://my-shop.com');

    // creating categories
    $cat1 = new sfYandexYMLCategory(1, 'T-shirts');
    $cat2 = new sfYandexYMLCategory(2, 'Drinks');
    $cat2 = new sfYandexYMLCategory(3, 'Vodka', 2); // child of Drinks

    // adding categories to document
    $yml->addCategory($cat1);
    $yml->addCategory($cat2);
    $yml->addCategory($cat3);

    // creating a simple offer
    $offer = new sfYandexYMLOffer_Model(1, true); // simple offer
    $offer->country_of_origin = 'Russia';
    $offer->currencyId = 'RUR';
    $offer->categoryId = $cat3->getId();
    $offer->delivery = true;
    $offer->description = $product->getShortDescription();
    $offer->downloadable=false;
    $offer->local_delivery_cost = 200;
    $offer->name = "Stolichnaya 0.5l";
    $offer->picture = 'http://my-shop.com/pix/stolichnaya.jpg';
    $offer->price = '329.99';
    $offer->sales_notes = 'Design bottle';
    $offer->url = 'http://my-shop.com/shop/drinks/stolichnaya05l.html';
    $offer->vendor = 'OAO Kristall';
    $offer->vendorCode = '12712-80';

    // adding the offer to document
    $yml->addOffer($offer);

    $yml->generateYML(); // generate document
    $yml_as_string =  $yml->saveYML(); // get YML as string
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

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

4683d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0499fdd6338e1520be3ab6776948652c429291c08b79504a2eec2315d73787ab?d=identicon)[And](/maintainers/And)

---

Tags

xmlymlyandexmarketyandex market

### Embed Badge

![Health badge](/badges/and-yandex-yml/health.svg)

```
[![Health](https://phpackages.com/badges/and-yandex-yml/health.svg)](https://phpackages.com/packages/and-yandex-yml)
```

###  Alternatives

[hassankhan/config

Lightweight configuration file loader that supports PHP, INI, XML, JSON, and YAML files

97413.7M182](/packages/hassankhan-config)[lireincore/ymlparser

YML (Yandex Market Language) parser

2430.3k1](/packages/lireincore-ymlparser)[m1/vars

Vars is a simple to use and easily extendable configuration loader with in built loaders for ini, json, PHP, toml, XML and yaml/yml file types. It also comes with in built support for Silex and more frameworks to come soon.

64124.3k1](/packages/m1-vars)[bukashk0zzz/yml-generator

YML (Yandex Market Language) file generator

115192.0k](/packages/bukashk0zzz-yml-generator)[serkin/ymlparser

Parser for yml(yandex.market.ru) files

114.1k](/packages/serkin-ymlparser)

PHPackages © 2026

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