PHP code example of drei-d / laravel-xentral-orders-parser
1. Go to this page and download the library: Download drei-d/laravel-xentral-orders-parser library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
drei-d / laravel-xentral-orders-parser example snippets
$orderDto = app(\DREID\LaravelXentralOrdersParser\Services\OrderParserService::class)->parseFromDisk(
'<disk>',
'<filepath>'
);
$orderDto = app(\DREID\LaravelXentralOrdersParser\Services\OrderParserService::class)->parse('<xml>');