keboola/gooddata-php-client

PHP Client for GoodData API

3.1.1 2023-08-22 07:57 UTC

README

Latest Stable Version License Total Downloads

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);

License

MIT licensed, see LICENSE file.