Download the PHP package larafull/ymlparser without Composer
On this page you can find all versions of the php package larafull/ymlparser. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download larafull/ymlparser
More information about larafull/ymlparser
Files in larafull/ymlparser
Package ymlparser
Short Description YML (Yandex XML format) parser for Laravel
License MIT
Homepage https://github.com/larafull/ymlparser
Informations about the package ymlparser
Laravel YML (Yandex XML format) Parser
Parser for yml(yandex.market.ru) files adapted for Laravel 5.5+.
Forked from https://github.com/serkin/ymlparser
Thanks for Serkin Alexander!
YMLParser out of box have two drivers for different file sizes:
- XMLReader - for medium and large xml files
- SimpleXML - for small xml files
Laravel YML parsing notice:
On current step Laravel is not required, but development of this package is going inside Laravel project.
Installation
Package requires php-xmlrpc and php-mbstring
Require package via Composer:
Usage
Remote YML parsing in Laravel etc
Since v1.2 remote parsing is available:
Getting all offers from file
Using filters for offers:
YMLParser::getOffers() can take filter function as an argument. Filter should be an anonymous function which returns true or false
Dependencies
- PHP: >= 7.1
- xmlrpc extension
- mbstring extension
Modifications after fork
DriverInterface can be changed. For capability check static variables will be added.
Migrations to create models from YML will be available later.
Contribution and your ideas
Create pull requests or/and message me here:
Telegram: @vvmspace
Twitter: @vvmspace
Instagram: https://instagram.com/insta.tagil
E-mail: [email protected]
All versions of ymlparser with dependencies
ext-xmlrpc Version *
ext-mbstring Version *