Skip to content

lireincore/ymlparser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YML (Yandex Market Language) parser

Software License

About

YML (Yandex Market Language) parser for PHP.

Install

Add the lireincore/ymlparser package to your require section in the composer.json file.

$ composer require lireincore/ymlparser

Usage

use LireinCore\YMLParser\YML;

$yml = new YML();
$yml->parse($filepath);
$date = $yml->getDate();
$shop = $yml->getShop();
/**@var \LireinCore\YMLParser\Offer\AOffer $offer*/
foreach ($yml->getOffers() as $offer) {
    //...
}

Testing

$ phpunit

License

The MIT License (MIT). Please see License File for more information.