think.studio / laravel-iprosoftware-sync
将ipro数据下载到您的数据库中。
2.1.0
2024-06-03 10:37 UTC
Requires
- php: ^8.1
- illuminate/support: ^10.0|^11.0
- think.studio/laravel-iprosoftware-api: ^4.0
- think.studio/laravel-json-field-cast: ^2.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.49
- orchestra/testbench: ^8.21
- phpunit/phpunit: ^10.5
- psalm/plugin-laravel: ^2.8
- vimeo/psalm: ^5.21
README
允许从Ipro API下载数据到本地数据库的包。
安装
通过composer安装包
composer require think.studio/laravel-iprosoftware-sync
可选地,您可以使用以下命令发布配置文件:
php artisan vendor:publish --provider="IproSync\ServiceProvider" --tag="config"
运行迁移以创建ipro表
php artisan migrate
用法
php artisan iprosoftware-sync:database:pull
# or
php artisan iprosoftware-sync:settings:pull
php artisan iprosoftware-sync:contacts:pull
php artisan iprosoftware-sync:properties:pull
php artisan iprosoftware-sync:availability:pull
php artisan iprosoftware-sync:properties-custom-rates:pull
php artisan iprosoftware-sync:blockouts:pull
php artisan iprosoftware-sync:bookings:pull --existing_properties