Download the PHP package macropage/laravel-daparto without Composer
On this page you can find all versions of the php package macropage/laravel-daparto. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download macropage/laravel-daparto
More information about macropage/laravel-daparto
Files in macropage/laravel-daparto
Package laravel-daparto
Short Description Help working with Daparto
License MIT
Homepage https://github.com/macropage/laravel-daparto
Informations about the package laravel-daparto
Import Orders from daparto.de
Installation
You can install the package via composer:
Publish config using php artisan vendor:publish --provider="macropage\laravel_daparto\DapartoServiveProvider"
Update your config config/daparto.php
CUSTOMER1
is just a placeholder, choose any name and as many you want.
Create a folder named "done" in your ftp-home.
Requirements
A Cache-Provider that supports "tagging".
Facade
With the Facade Daparto
you can call these methods:
- Daparto::setCustomerConfig('CUSTOMER1')
- Daparto::getXMLOrders (fetch orders via ftp or from cache)
- Daparto::getSingleXMLOrder($orderId)
$OrderFileName = 'ORDER_' . $orderId . '.xml';
- Daparto::getXMLOrdersCached (same like getXMLOrders, but fetch data from cache)
- Daparto::getDistinctShippingDescr (for debugging: unique list of shipping-description within all orders)
- Daparto::getDistinctPaymentDescr (for debugging: unique list of payment-description within all orders)
- Daparto::setDone($xmlFileName) (moves file to 'done')
- Daparto::uploadShippingData($order_number, $carrier, $shipping_number) (uploading shipping infos to ftp)
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();
Usage: Artisan Commands
- daparto:list-orders {account_name} {orderid?} {--cache}
- daparto:set-done {account_name} {orderid}
"list-orders" prints all orders as php-array
"set-done" moves the xml-order-file into the folder named "done".
Usage: in your code
Contributing
Help is appreciated :-)
You need help?
yes, you can hire me!
Credits
License
The MIT License (MIT). Please see License File for more information.
Laravel Package Boilerplate
This package was generated using the Laravel Package Boilerplate.
All versions of laravel-daparto with dependencies
macropage/xml-to-php-array Version dev-master
league/csv Version ^9.7
ext-xmlreader Version *