{"id":19215468,"url":"https://github.com/michabbb/laravel-daparto","last_synced_at":"2025-09-13T22:38:06.703Z","repository":{"id":62521459,"uuid":"265593087","full_name":"michabbb/laravel-daparto","owner":"michabbb","description":"Fetch daparto.de xml Orders via FTP","archived":false,"fork":false,"pushed_at":"2024-06-12T13:48:20.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-07T09:32:53.203Z","etag":null,"topics":["bestellungen","daparto","ftp","laravel","orders","xml"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/michabbb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-20T14:35:01.000Z","updated_at":"2023-09-23T05:44:27.000Z","dependencies_parsed_at":"2025-02-07T09:39:22.132Z","dependency_job_id":null,"html_url":"https://github.com/michabbb/laravel-daparto","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michabbb%2Flaravel-daparto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michabbb%2Flaravel-daparto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michabbb%2Flaravel-daparto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michabbb%2Flaravel-daparto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michabbb","download_url":"https://codeload.github.com/michabbb/laravel-daparto/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246659937,"owners_count":20813333,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bestellungen","daparto","ftp","laravel","orders","xml"],"created_at":"2024-11-09T14:13:46.822Z","updated_at":"2025-04-01T14:48:38.438Z","avatar_url":"https://github.com/michabbb.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Import Orders from daparto.de\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require macropage/laravel-daparto\n```\n\nPublish config using `php artisan vendor:publish --provider=\"macropage\\laravel_daparto\\DapartoServiveProvider\"`  \n\nUpdate your config `config/daparto.php`\n```php\n\u003c?php\n\nreturn [\n    'accounts' =\u003e [\n        'CUSTOMER1' =\u003e [\n            'orders' =\u003e [\n                'ftp' =\u003e [\n                    'driver'   =\u003e 'ftp',\n                    'host'     =\u003e 'ftp.daparto.de',\n                    'username' =\u003e 'xxxxxxx',\n                    'password' =\u003e 'xxxxxxx',\n                ]\n            ]\n        ]\n    ]\n\n];\n```\n`CUSTOMER1` is just a placeholder, choose any name and as many you want.  \nCreate a folder named \"done\" in your ftp-home.\n\n## Requirements\n[A Cache-Provider](https://laravel.com/docs/7.x/cache#cache-tags) that supports \"tagging\".\n\n## Facade\nWith the Facade `Daparto` you can call these methods:\n\n- Daparto::setCustomerConfig('CUSTOMER1')\n- Daparto::getXMLOrders (fetch orders via ftp or from cache)\n- Daparto::getSingleXMLOrder($orderId) `$OrderFileName = 'ORDER_' . $orderId . '.xml';`\n- Daparto::getXMLOrdersCached (same like getXMLOrders, but fetch data from cache)\n- Daparto::getDistinctShippingDescr (for debugging: unique list of shipping-description within all orders)\n- Daparto::getDistinctPaymentDescr (for debugging: unique list of payment-description within all orders)\n- Daparto::setDone($xmlFileName) (moves file to 'done')\n- Daparto::uploadShippingData($order_number, $carrier, $shipping_number) (uploading shipping infos to ftp)\n\n**NOTICE:** using \"getXMLOrders\" without cache, flushes the whole cache for your CUSTOMER1  \nin case you want to flush the cache manually: `Cache::tags('daparto.CUSTOMER1')-\u003eflush();` \n\n## Usage: Artisan Commands\n- daparto:list-orders {account_name} {orderid?} {--cache}\n- daparto:set-done {account_name} {orderid}\n\n\"list-orders\" prints all orders as php-array  \n\"set-done\" moves the xml-order-file into the folder named \"done\".\n\n## Usage: in your code\n```php\n\u003c?php\nDaparto::setCustomerConfig($this-\u003eargument('customer'));\nif ($this-\u003eargument('orderid')) {\n    $singleOrder = Daparto::getSingleXMLOrder($this-\u003eargument('orderid'), $this-\u003eoption('cache'));\n} else {\n    $OrderArrays = Daparto::getXMLOrders($this-\u003eoption('cache'));\n}\n```\n\n## Contributing\n\nHelp is appreciated :-)\n\n## You need help?\n_yes, you can hire me!_  \n    \n[![xing](https://i.imgur.com/V3RuEM7.png)](https://www.xing.com/profile/Michael_Bladowski/cv)\n[![linkedin](https://i.imgur.com/UNH7YtM.png)](https://www.linkedin.com/in/macropage/)\n[![twitter](https://i.imgur.com/iSv2xRb.png)](https://twitter.com/michabbb)\n\n## Credits\n- [Michael Bladowski](https://github.com/michabbb)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n\n## Laravel Package Boilerplate\n\nThis package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichabbb%2Flaravel-daparto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichabbb%2Flaravel-daparto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichabbb%2Flaravel-daparto/lists"}