macropage/laravel-daparto is a Laravel package for help working with daparto.
It currently has 0 GitHub stars and 118 downloads on Packagist (latest version v2.05).
Install it with composer require macropage/laravel-daparto.
Discover more Laravel packages by macropage
or browse all Laravel packages to compare alternatives.
Last updated
You can install the package via composer:
composer require macropage/laravel-daparto
Publish config using php artisan vendor:publish --provider="macropage\laravel_daparto\DapartoServiveProvider"
Update your config config/daparto.php
<?php
return [
'accounts' => [
'CUSTOMER1' => [
'orders' => [
'ftp' => [
'driver' => 'ftp',
'host' => 'ftp.daparto.de',
'username' => 'xxxxxxx',
'password' => 'xxxxxxx',
]
]
]
]
];
CUSTOMER1 is just a placeholder, choose any name and as many you want.
Create a folder named "done" in your ftp-home.
A Cache-Provider that supports "tagging".
With the Facade Daparto you can call these methods:
$OrderFileName = 'ORDER_' . $orderId . '.xml';NOTICE: using "getXMLOrders" without cache, flushes the whole cache for your CUSTOMER1
in case you want to flush the cache manually: Cache::tags('daparto.CUSTOMER1')->flush();
"list-orders" prints all orders as php-array
"set-done" moves the xml-order-file into the folder named "done".
<?php
Daparto::setCustomerConfig($this->argument('customer'));
if ($this->argument('orderid')) {
$singleOrder = Daparto::getSingleXMLOrder($this->argument('orderid'), $this->option('cache'));
} else {
$OrderArrays = Daparto::getXMLOrders($this->option('cache'));
}
Help is appreciated :-)
yes, you can hire me!
The MIT License (MIT). Please see License File for more information.
This package was generated using the Laravel Package Boilerplate.