imamuseum/harvester
Composer 安装命令:
composer require imamuseum/harvester
包简介
Online collection data harvester middleware.
README 文档
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.
统计信息
- 总下载量: 28
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-03-31