承接 keboola/extractor-bundle 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

keboola/extractor-bundle

最新稳定版本:1.2.1

Composer 安装命令:

composer require keboola/extractor-bundle

包简介

Keboola Extractor Development Bundle

README 文档

README

This readme assumes knowledge of Syrup environment. Please refer to Syrup's documentation for basic informations!

0. Environment init

Connect to elasticsearch

Ensure you can connect to Elasticsearch and the databases specified in parameters_shared.yml!

Skip if yer developing on Devel!

KBC Devel: ssh kbc-devel-02.keboola.com -L 9200:VPC-ELB-ElasticSearch-Syrup-Test-651343387.us-east-1.elb.amazonaws.com:9200 -L 3306:localhost:3306

1. Create the extractor

$ git clone git@github.com:keboola/extractor-generator.git

$ php extractor-generator/generate.php

Follow interactive interface

Remove generator

$ rm -rf extractor-generator

2. Prepare the Elasticsearch Index

php ./vendor/keboola/syrup/app/console syrup:create-index

3. Get to work!

  • Edit YourAppExtractor.php and YourAppExtractorJob.php
  • Edit Resources/config/services.yml if you need to use parameters.yml values in the application:

    • Example:

      • services.yml:

        ex_twitter.extractor:
        	class: Keboola\TwitterExtractorBundle\TwitterExtractor
        	arguments: ['%twitter%']
        
      • TwitterExtractor.php

        /** @var array */
        protected $apiKeys;
        
        public function __construct($twitter) {
        	$this->apiKeys = $twitter;
        }
        
      • parameters.yml

        twitter:
        	api-key: WoWSuchApiKey16777216489
        	api-secret: OMGICantBelieveH0wS3cr3tIAmTh4t5cr42yTr00l0l0lOhai
        

I found it easier for development to print out messages to stdout when using the run-job command. That can be done by editing the monolog parameter in vendor/keboola/syrup/app/config/config_dev.yml:

monolog:
	handlers:
		syslog:
			type:                stream
			path:                php://stdout
			level:               debug
			bubble:              false

For more information about Syrup bundles check out the documentation

统计信息

  • 总下载量: 2.54k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 6
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2014-11-05