drei-d / laravel-xentral-orders-parser
There is no license information available for the latest version (0.0.3) of this package.
Parses Xentral order xml files
0.0.3
2024-09-04 08:30 UTC
Requires
- php: ^8.2
- ext-simplexml: *
- laravel/framework: ^11
README
Requirements
- Laravel 11
- PHP 8.2 or higher
- ext-simplexml enabled
Setup
This package is available on Packagist via Composer and can be installed with the following command:
composer require drei-d/laravel-xentral-orders-parser
Usage
Once installed, you can parse a file using the OrderParserService
:
$orderDto = app(\DREID\LaravelXentralOrdersParser\Services\OrderParserService::class)->parseFromDisk( '<disk>', '<filepath>' );
You can also just parse the xml content without reading it from a file beforehand:
$orderDto = app(\DREID\LaravelXentralOrdersParser\Services\OrderParserService::class)->parse('<xml>');
That's already it. You're good to go.
Enjoy!