jasekz / rentals-united-caching

Laravel package meant to simplify syncing data with Rentals United
MIT License
5 stars 2 forks source link

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

License

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