yaroslawww/laravel-myriad-data-store

This package is abandoned and no longer maintained. The author suggests using the think.studio/laravel-myriad-data-store package instead.

Download data from myriad app using soap api.

1.3.0 2023-07-11 06:02 UTC

This package is auto-updated.

Last update: 2023-07-11 06:04:47 UTC


README

Packagist License Packagist Version Total Downloads Build Status Code Coverage Scrutinizer Code Quality

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");}

Credits

  • Think Studio