jasekz / rentals-united-caching by jasekz

Rentals United (rentalsunited.com) data synchronization system for Laravel 5
52
5
3
Package Data
Maintainer Username: jasekz
Maintainer Contact: zig@elegrit.com (Jasek Zbigniew)
Package Create Date: 2015-12-20
Package Last Update: 2015-12-20
Language: PHP
License: MIT
Last Refreshed: 2024-12-14 15:05:06
Package Statistics
Total Downloads: 52
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 5
Total Watchers: 3
Total Forks: 2
Total Open Issues: 1

Rentals United Caching

Software License

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 - http://laravel.com/docs/5.0/database.

Via composer

composer require jasekz/rentals-united-caching
composer update

Then in your config/app.php add

    'Jasekz\RentalsUnitedCaching\RentalsUnitedCachingServiceProvider'

to the providers array and

    'RentalsUnited' => 'Jasekz\RentalsUnitedCaching\RentalsUnitedCachingFacade'

to the aliases array.

Finally, 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):

RENTALS_UNITED_USERNAME=<your Rentals United username/email>
RENTALS_UNITED_PASSWORD=<your Rentals United password>
XML_CACHE_DIR='/path/to/cache/directory/'

Usage Examples

  • artisan rentals_united:cache_all // truncate all tables and cache everything
  • artisan rentals_united:cache_properties --id=4 // cache property (ID) 4
  • artisan rentals_united:cache_properties --id=4,5 // cache properties (ID) 4 & 5
  • artisan rentals_united:cache_properties --id=new // find and cache all new properties
  • artisan rentals_united:update_change_log --since="-1 month" // check for updates 'since' given date/time
  • artisan rentals_united:update_change_log --since="2014-03-26 12:51:00" // check for updates 'since' given date/time
  • artisan rentals_united:update_properties --since="-1 month" // update properties which changed 'since' given date/time
  • artisan rentals_united:update_properties --since="2014-03-26 12:51:00" // update properties which changed 'since' given date/time

License

The MIT License (MIT). Please see License File for more information.