Skip to content

DREI-D/laravel-xentral-orders-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Xentral Orders Parser

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!

About

A package to parse Xentral order xml files in Laravel

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages