think.studio / laravel-myriad-data-store
Download data from myriad app using soap api.
1.3.0
2023-07-11 06:02 UTC
Requires
- php: ^8.1
- illuminate/support: ^9.0|^10.0
- think.studio/laravel-json-field-cast: ^2.3
- think.studio/laravel-myriad-soap: ^1.4
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.20
- orchestra/testbench: ^8.5
- phpunit/phpunit: ^10.2
- psalm/plugin-laravel: ^2.8
- vimeo/psalm: ^5.13
README
Download specific myriad app data to your internal database.
Installation
Install the package via composer:
composer require think.studio/laravel-myriad-data-store
Optionally you can publish the config file with:
php artisan vendor:publish --provider="MyriadDataStore\ServiceProvider" --tag="config"
This package works on top of think.studio/laravel-myriad-soap
- please follow this configuration.
Usage
Easy way to download current database to your system is:
# Create all required tables # Note: All related IDs are not foreign keys - to allow download in any order php artisan migrate # Download related data php artisan myriad-download:despatch-types php artisan myriad-download:titles php artisan myriad-download:issues php artisan myriad-download:contact-types php artisan myriad-download:product-types php artisan myriad-download:order-package-types php artisan myriad-download:order-status-types # Use tinker to make multiple batch: php artisan tinker > for ($i=0;$i<3200;$i++) {$st=($i*125)+1; \Artisan::call("myriad-download:contacts {$st} --count=125 --queue=myriad");} > for ($i=0;$i<3200;$i++) {$st=($i*125)+1; \Artisan::call("myriad-download:contacts-orders-basic {$st} --count=125 --queue=myriad");}