PHPackages                             iamsaint/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. iamsaint/yml

ActiveLibrary

iamsaint/yml
============

Yandex market YML builder

1.0.10(6y ago)01.7k2BSD-3-ClausePHPPHP &gt;=7.1.0

Since Jun 25Pushed 4y ago2 watchersCompare

[ Source](https://github.com/iamsaint/yml)[ Packagist](https://packagist.org/packages/iamsaint/yml)[ Docs](https://github.com/iamsaint/yml)[ RSS](/packages/iamsaint-yml/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (13)Used By (0)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/d0b48905e9571d50d46c4eaf2c78d2bf55029f746568df9426fa280aae3424a0/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f69616d7361696e742f796d6c2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/iamsaint/yml/?branch=master) [![Code Intelligence Status](https://camo.githubusercontent.com/2ff1a3eaf697057fb927c76db3828bc7c0e6b309e530beb954897c14ef456c52/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f69616d7361696e742f796d6c2f6261646765732f636f64652d696e74656c6c6967656e63652e7376673f623d6d6173746572)](https://scrutinizer-ci.com/code-intelligence) [![Build Status](https://camo.githubusercontent.com/a217c1b5fc0cd6762b78bfe6135be37d8cd76b33449d615de258bea496a7ba23/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f69616d7361696e742f796d6c2f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/iamsaint/yml/build-status/master) [![Latest Stable Version](https://camo.githubusercontent.com/6f03ec4bb9ac5c42c5f502a47e90a2aa78c53eb3e027d5fe4d8d39235fedbbd9/68747470733a2f2f706f7365722e707567782e6f72672f69616d7361696e742f796d6c2f762f737461626c65)](https://packagist.org/packages/iamsaint/yml) [![Total Downloads](https://camo.githubusercontent.com/5e3e7bbe7d2450415269717613cbea478b92a0f77fc07e85e559e8da16e03242/68747470733a2f2f706f7365722e707567782e6f72672f69616d7361696e742f796d6c2f646f776e6c6f616473)](https://packagist.org/packages/iamsaint/yml) [![License](https://camo.githubusercontent.com/ca772adc013f400ff2d19a2065b51ec1c5ade9de0fb95434dbad6f93ed2b3f3a/68747470733a2f2f706f7365722e707567782e6f72672f69616d7361696e742f796d6c2f6c6963656e7365)](https://packagist.org/packages/iamsaint/yml) [![Monthly Downloads](https://camo.githubusercontent.com/ae5888aeba9aedc97a1824f9d2f4aef824559821c1e7912232fffea1a1dd4569/68747470733a2f2f706f7365722e707567782e6f72672f69616d7361696e742f796d6c2f642f6d6f6e74686c79)](https://packagist.org/packages/iamsaint/yml)

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

[](#installation)

```
composer require iamsaint/yml

```

After that, make sure your application autoloads Composer classes by including `vendor/autoload.php`.

How to use it
-------------

[](#how-to-use-it)

```
use iamsaint\yml\Writer;
use iamsaint\yml\components\{
    Shop,
    Currency,
    Category
}

// create shop
$shop = new Shop();
$shop->setName('Shop Name')
    ->setUrl('http://...')
    ->setCompany('My Company');

// create currency
$currency = new Currency();
$currency
    ->setId(Currency::RUR)
    ->setRate(Currency::DEFAULT_RATE);

// add currency
$shop->addCurrency($currency);

// create category
$category = new Category();
$category
    ->setId(1)
    ->setName("My category");

// create subcategory
$subCategory = new Category();
$subCategory
    ->setId(2)
    ->setParentId(1)
    ->setName("My subcategory");

// add categories to shop
$shop->addCategory($category);
$shop->addCategory($subCategory);

// create offer
$offer = new Offer();

$offer->setId(123)
    ->setUrl('http://...')
    ->setPrice(1000)
    ->setCurrencyId(Currency::RUR);

// add offer to shop
$shop->addOffer($offer);

// create writer
$writer = new Writer();

// write to file
$writer->write('path/to/file.yml', $shop);
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 81.8% 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 ~42 days

Recently: every ~3 days

Total

11

Last Release

2454d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fbc5a063b9339d8a31bcb73657af2fc901694ecbf827a135ae882ca02d085465?d=identicon)[iamsaint](/maintainers/iamsaint)

---

Top Contributors

[![iamsaint](https://avatars.githubusercontent.com/u/1016350?v=4)](https://github.com/iamsaint "iamsaint (9 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (2 commits)")

---

Tags

phpyandex-marketymlyandex market

### Embed Badge

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

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

PHPackages © 2026

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