rentalmanager / importer
Rental Manager Importer package for parsing and extracting the inbound feeds
Requires
- php: ^7.1.3
- ext-curl: *
- ext-dom: *
- ext-json: *
- ext-libxml: *
- ext-simplexml: *
- ext-xmlreader: *
- ext-zlib: *
- guzzlehttp/guzzle: ^6.3
- kkszymanowski/traitor: ^0.2.0
- pcrov/jsonreader: ^0.7.1
Requires (Dev)
- phpunit/phpunit: >=5.4.3
- squizlabs/php_codesniffer: ^2.3
README
This package is the main package for downloading, parsing and importing feeds. It's installed as the last package in the main namespace RentalManager since it uses every model available in the root namespace.
Installation, Configuration
Installation
Via Composer
After that just simply add the following line to the composer required packages
composer require rentalmanager/importer
Configuration
Once you install the package, it should be automatically discovered by the Laravel. To check this, in your terminal simply run the:
$ php artisan
There you should find the all rm-importer:*
commands.
After you have checked that the all commands are there you need a couple of things to do by yourself.
Migrate tables
Migrate table using
$ php artisan migrate
Laravel log
This package uses default Laravel log package for storing logs, but it uses different channels.
You should open the file config/logging.php
and add the following channels in the channel array:
'importer' => [ 'driver' => 'daily', 'path' => storage_path('logs/importer.log'), 'level' => 'debug', 'days' => 7, ]
Config
Publish the config file php artisan vendor:publish --tag="importer"
All info comes later :)