keboola/gooddata-writer-php-client

This package is abandoned and no longer maintained. No replacement package was suggested.
There is no license information available for the latest version (3.0.0) of this package.

PHP Client for KBC GoodData Writer

3.0.0 2016-05-09 08:51 UTC

README

Simple PHP wrapper library for Keboola GoodData Writer REST API

Installation

Library is available as composer package. To start using composer in your project follow these steps:

Install composer

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:

{
    "require": {
        "php" : ">=5.3.2",
        "keboola/gooddata-writer-php-client": "~1.9"
    }
}

Install package:

composer install

Add autoloader in your bootstrap script:

require 'vendor/autoload.php';

Read more in Composer documentation

Tests

Tests requires valid Storage API token and URL of API. You can set these by copying file config.template.php into config.php and filling required constants int config.php file. Other way to provide parameters is to set environment variables:

export=GOODDATA_WRITER_API_URL=https://syrup.keboola.com/gooddata-writer
export=STORAGE_API_TOKEN=YOUR_TOKEN

Tests expects master token and performs all operations.

Never run this tests on production user with real data, always create user for testing purposes!!!

When the parameters are set you can run tests by phpunit command.