PHP Client For GoodData API
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/Keboola/GoodData
tests
.codeclimate.yml
.gitignore
.travis.yml
LICENSE
README.md
composer.json
phpunit.xml.dist

README.md

GoodData API PHP client by Keboola

Latest Stable Version License Total Downloads

Status

Build Status Code Climate Test Coverage

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": {
        "keboola/gooddata-php-client": "~1.0"
    }
}

Install package:

composer install

Add autoloader in your bootstrap script:

require 'vendor/autoload.php';

Read more in Composer documentation

Usage examples

require 'vendor/autoload.php';

$client = new \Keboola\GoodData\Client(KBGDC_API_URL);
$client->login(KBGDC_USERNAME, KBGDC_PASSWORD);

$pid = $client->getProjects()->createProject('Project name', KBGDC_AUTH_TOKEN);