imamuseum/harvester

Online collection data harvester middleware.

3.0.2 2016-06-02 19:46 UTC

This package is not auto-updated.

Last update: 2024-05-11 16:51:00 UTC


README

##Harvester Package

###Composer Setup

    "require": {
        "imamuseum/harvester": "^2.0"
    },

Service Provider

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

Artisan Commands

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.

License

The Laravel framework is open-sourced software licensed under the MIT license.