All Projects → lireincore → Ymlparser

lireincore / Ymlparser

Licence: mit
YML (Yandex Market Language) parser

Projects that are alternatives of or similar to Ymlparser

YmlGenerator
YML (Yandex Market Language) file generator
Stars: ✭ 96 (+585.71%)
Mutual labels:  yandex, yml
Strictyaml
Type-safe YAML parser and validator.
Stars: ✭ 836 (+5871.43%)
Mutual labels:  yml, parser
Yii2 Yml Catalog
Компонент выгрузки каталога товаров в Яндекс.Маркет
Stars: ✭ 16 (+14.29%)
Mutual labels:  yandex, yml
Mico
Mico ("Monkey" in catalan). Monkey language implementation done with C++. https://interpreterbook.com/
Stars: ✭ 19 (+35.71%)
Mutual labels:  parser
Graphql Mst
Convert GraphQL to mobx-state-tree models
Stars: ✭ 22 (+57.14%)
Mutual labels:  parser
Parse Code Context
Parse code context in a single line of javascript, for functions, variable declarations, methods, prototype properties, prototype methods etc.
Stars: ✭ 7 (-50%)
Mutual labels:  parser
Purepos
PurePos is an open source hybrid morphological tagger.
Stars: ✭ 12 (-14.29%)
Mutual labels:  parser
Ccalc
Scientific calculator in which you can define new constants and functions
Stars: ✭ 19 (+35.71%)
Mutual labels:  parser
Itunes smartplaylist
iTunes Smart playlist parser with Python. Convert to Kodi xsp smart playlists.
Stars: ✭ 10 (-28.57%)
Mutual labels:  parser
Librini
Rini is a tiny, non-libc dependant, .ini file parser programmed from scratch in C99.
Stars: ✭ 25 (+78.57%)
Mutual labels:  parser
Badx12
A Python Library for parsing ANSI ASC X12 files.
Stars: ✭ 25 (+78.57%)
Mutual labels:  parser
Jkt
Simple helper to parse JSON based on independent schema
Stars: ✭ 22 (+57.14%)
Mutual labels:  parser
Hx Mathparser
Evaluates math expressions. Written in Haxe.
Stars: ✭ 7 (-50%)
Mutual labels:  parser
Combine
A parser combinator library for Rust
Stars: ✭ 906 (+6371.43%)
Mutual labels:  parser
Slang
A small, flexible and extensible front-end for GLSL.
Stars: ✭ 10 (-28.57%)
Mutual labels:  parser
Chthollylang
A simple implementation of Yet another script language Chtholly
Stars: ✭ 19 (+35.71%)
Mutual labels:  parser
Vector
A reliable, high-performance tool for building observability data pipelines.
Stars: ✭ 8,736 (+62300%)
Mutual labels:  parser
Lisp Esque Language
💠The Lel programming language
Stars: ✭ 24 (+71.43%)
Mutual labels:  parser
Dsongo
Encoding, decoding, marshaling, unmarshaling, and verification of the DSON (Doge Serialized Object Notation)
Stars: ✭ 23 (+64.29%)
Mutual labels:  parser
Metric Parser
📜 AST-based advanced mathematical parser written by Typescript.
Stars: ✭ 26 (+85.71%)
Mutual labels:  parser

YML (Yandex Market Language) parser

Latest Stable Version Total Downloads License

About

YML (Yandex Market Language) streaming parser with validation. Based on XMLReader. Suitable for large files.

Install

Add the "lireincore/ymlparser": "^3.2" package to your require section in the composer.json file

or

$ php composer.phar require lireincore/ymlparser

Usage

use LireinCore\YMLParser\YML;

$yml = new YML();
try {
    $yml->parse($filepath);
    $date = $yml->getDate();
    $shop = $yml->getShop();
    if ($shop->isValid()) {
        $offersCount = $shop->getOffersCount();
        $shopData = $shop->getData();
        //...
        foreach ($yml->getOffers() as $offer) {
            if ($offer->isValid()) {
                $offerCategoryHierarchy = $shop->getCategoryHierarchy($offer->getCategoryId());
                $offerData = $offer->getData();
                //...
            } else {
                var_dump($offer->getErrors());
                //...
            }
        }
    } else {
        var_dump($shop->getErrors());
        //...
    }
} catch (\Exception $e) {
    echo $e->getMessage();
    //...
}

License

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].