Download the PHP package craymend/rentals-united-caching without Composer
On this page you can find all versions of the php package craymend/rentals-united-caching. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download craymend/rentals-united-caching
More information about craymend/rentals-united-caching
Files in craymend/rentals-united-caching
Package rentals-united-caching
Short Description Rentals United (rentalsunited.com) data synchronization system for Laravel
License MIT
Informations about the package rentals-united-caching
Rentals United Caching
Synchronize Rentals United data with your local database.
Installation
NOTE: If you haven't set up a database yet for your app, please do that first as per Laravel docs - https://laravel.com/docs/5.5/database.
Via composer.
Run
artisan vendor:publish
followed by
artisan migrate
Now in your .env file, define your Rentals United credentials and path to store the downloaded XML files (temporary storage):
Usage Examples
-
artisan rentals_united:cache_all
- Init RU data. Truncate all tables and cache everything.
-
artisan rentals_united:cache_dictionaries
- Truncate all dictionary tables and cache dictionary data.
- RU docs recommend running this "once a month".
-
artisan rentals_united:cache_properties --id=4,5
- Cache specific properties on demand by id.
-
artisan rentals_united:cache_properties --id=new
- Find and cache all properties created in the last 2 hours
-
artisan rentals_united:update_change_log --since="-1 day"
- Update change logs older then 'since' given date/time.
- RU docs recommend running this "at least once a day".
-
artisan rentals_united:update_properties --since="-1 day"
- Update properties data with local change log date 'since' given date/time.
- RU docs recommend running this "at least once a day".
-
artisan rentals_united:cache_reservations --since="-20 minute"
- Cache reservations with LastMod in window 'since' given date/time to current time. Does not truncate any existing reservations.
- RU does not allow a window larger then 7 days.
- RU docs recommend running this "at least every 20 minutes".
- artisan rentals_united:cache_reservations --id=3,4
- Cache specific reservations on demand by id.
Laravel Scheduler Example
Laravel task scheduling makes it easy to update cached data.
Example:
License
The MIT License (MIT). Please see License File for more information.