YandexMarketLanguage Parser

About

Yandex Market Language parser for PHP.

1. Installation

Add the sirian/yandex-market-language-parser package to your require section in the composer.json file.

$ composer require sirian/yandex-market-language-parser

2. Usage

use Sirian\YMLParser\Parser;

$parser = new Parser();
$result = $parser->parse($file);

$shop = $result->getShop();

foreach ($result->getOffers() as $offer) {
    // some logic
}