2017 © Pedro Peláez
 

library orchestrator-php-client

PHP Client for KBC Orchestrator

image

keboola/orchestrator-php-client

PHP Client for KBC Orchestrator

  • Monday, December 11, 2017
  • by ErikZigo
  • Repository
  • 9 Watchers
  • 0 Stars
  • 595 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 2 Open issues
  • 17 Versions
  • 4 % Grown

The README.md

Keboola Orchestrator API PHP client

Branch workflow, (*1)

Simple PHP wrapper library for Keboola Orchestrator REST API, (*2)

Installation

Library is available as composer package. To start using composer in your project follow these steps:, (*3)

Install composer, (*4)

curl -s http://getcomposer.org/installer | php
mv ./composer.phar ~/bin/composer # or /usr/local/bin/composer

Create composer.json file in your project root folder:, (*5)

{
    "require": {
        "php" : ">=5.6",
        "keboola/orchestrator-php-client": "1.3.*"
    }
}

Install package:, (*6)

composer install

Add autoloader in your bootstrap script:, (*7)

require 'vendor/autoload.php';

Read more in Composer documentation, (*8)

Usage

Execute all orchestrations in KBC project example:, (*9)

use Keboola\Orchestrator\Client;

$client = Client::factory(array(
    'token' => 'YOUR_TOKEN',
));

// retrieve all orchestrations in KBC project
$orchestrations = $client->getOrchestrations();

foreach ($orchestrations AS $orchestration) {
    // manually execute orchestration
    $client->createJob($orchestration['id']);
}

Tests

To run tests you need Storage API token to an empty project in Keboola Connection. The project must be in US region., (*10)

Create .env file with environment variables:, (*11)

ORCHESTRATOR_API_URL=https://syrup.keboola.com/orchestrator/
ORCHESTRATOR_API_TOKEN=your_token
ERROR_NOTIFICATION_EMAIL={your_email}
  • ORCHESTRATOR_API_URL - Url of Orchestrator Rest API endpoint
  • ORCHESTRATOR_API_TOKEN - Valid Storage API token. Token must have canManageTokens permissions.
  • ERROR_NOTIFICATION_EMAIL - Your email address. It will be used in orchestrator notification settings.

Build image and run tests, (*12)

docker network create orchestrator-router_api-tests
docker-compose build tests
docker-compose run --rm tests ./vendor/bin/phpunit

License

MIT licensed, see LICENSE file., (*13)

The Versions

11/12 2017
22/08 2017

dev-master

9999999-dev https://connection.keboola.com

PHP Client for KBC Orchestrator

  Sources   Download

The Requires

 

The Development Requires

21/04 2017

1.2.2

1.2.2.0 https://connection.keboola.com

PHP Client for KBC Orchestrator

  Sources   Download

The Requires

 

The Development Requires

18/04 2017

1.2.1

1.2.1.0 https://connection.keboola.com

PHP Client for KBC Orchestrator

  Sources   Download

The Requires

 

The Development Requires

03/02 2016

1.2.0

1.2.0.0 https://connection.keboola.com

PHP Client for KBC Orchestrator

  Sources   Download

The Requires

 

The Development Requires

28/01 2015

1.1.5

1.1.5.0 https://connection.keboola.com

PHP Client for KBC Orchestrator

  Sources   Download

The Requires

 

The Development Requires

23/01 2015

1.1.4

1.1.4.0 https://connection.keboola.com

PHP Client for KBC Orchestrator

  Sources   Download

The Requires

 

The Development Requires

14/12 2014

1.1.3

1.1.3.0 https://connection.keboola.com

PHP Client for KBC Orchestrator

  Sources   Download

The Requires

 

The Development Requires

09/12 2014

1.1.2

1.1.2.0 https://connection.keboola.com

PHP Client for KBC Orchestrator

  Sources   Download

The Requires

 

The Development Requires

06/11 2014

1.1.1

1.1.1.0 https://connection.keboola.com

PHP Client for KBC Orchestrator

  Sources   Download

The Requires

 

The Development Requires

03/10 2014

1.1.0

1.1.0.0 https://connection.keboola.com

PHP Client for KBC Orchestrator

  Sources   Download

The Requires

 

The Development Requires

24/07 2014

1.0.5

1.0.5.0 https://connection.keboola.com

PHP Client for KBC Orchestrator

  Sources   Download

The Requires

 

The Development Requires

30/06 2014

1.0.4

1.0.4.0 https://connection.keboola.com

PHP Client for KBC Orchestrator

  Sources   Download

The Requires

 

The Development Requires

09/05 2014

1.0.3

1.0.3.0 https://connection.keboola.com

PHP Client for KBC Orchestrator

  Sources   Download

The Requires

 

The Development Requires

16/04 2014

1.0.2

1.0.2.0 https://connection.keboola.com

PHP Client for KBC Orchestrator

  Sources   Download

The Requires

 

The Development Requires

09/04 2014

1.0.1

1.0.1.0 https://connection.keboola.com

PHP Client for KBC Orchestrator

  Sources   Download

The Requires

 

The Development Requires

31/03 2014

1.0.0

1.0.0.0 https://connection.keboola.com

PHP Client for KBC Orchestrator

  Sources   Download

The Requires

 

The Development Requires