##Harvester Package
###Composer Setup
"require": {
"imamuseum/harvester": "^2.0"
},
In config/app.php
add to the autoloaded providers -
Imamuseum\Harvester\HarvesterServiceProvider::class,
Add ExampleHarvester to app/Providers/AppServiceProvider.php
to implement the HarvesterInterface.
public function register()
{
$this->app->bind('Imamuseum\Harvester\Contracts\HarvesterInterface',
'Imamuseum\Harvester\ExampleHarvester');
}
Now you can publish the package -
php artisan vendor:publish
Run Migrations -
php artisan migrate
Run an initial sync with fake data -
php artisan harvest:collection --initial
Push items off the queue -
php artisan queue:listen
php artisan harvest:collection
php artisan harvest:object
php artisan harvest:maintain
Use the --help flag after any command to view the available options with a description.
The Laravel framework is open-sourced software licensed under the MIT license.