drei-d/laravel-xentral-orders-parser

There is no license information available for the latest version (0.0.4) of this package.

Parses Xentral order xml files

Installs: 47

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/drei-d/laravel-xentral-orders-parser

0.0.4 2025-02-14 09:49 UTC

This package is auto-updated.

Last update: 2025-10-14 11:09:53 UTC


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!