imamuseum/harvester

在线收集数据采集中间件。

3.0.2 2016-06-02 19:46 UTC

This package is not auto-updated.

Last update: 2024-09-14 18:58:29 UTC


README

##Harvester 包

###Composer 配置

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

服务提供者

config/app.php 中添加到自动加载的提供者 -

Imamuseum\Harvester\HarvesterServiceProvider::class,

将 ExampleHarvester 添加到 app/Providers/AppServiceProvider.php 以实现 HarvesterInterface。

    public function register()
    {
        $this->app->bind('Imamuseum\Harvester\Contracts\HarvesterInterface',
            'Imamuseum\Harvester\ExampleHarvester');
    }

现在您可以发布该包 -

php artisan vendor:publish

运行迁移 -

php artisan migrate

使用假数据运行初始同步 -

php artisan harvest:collection --initial

将队列中的项目推离 -

php artisan queue:listen

Artisan 命令

php artisan harvest:collection
php artisan harvest:object
php artisan harvest:maintain

在任意命令后使用 --help 标志可查看带有描述的可用选项。

许可证

Laravel 框架是开源软件,根据 MIT 许可证 许可。