keboola/billing-api-php-client

PHP Client for Keboola Connection Billing API

5.0.0 2024-01-15 14:45 UTC

This package is auto-updated.

Last update: 2024-04-15 15:42:29 UTC


README

PHP client for the Billing API (API docs).

Usage

composer require keboola/billing-api-php-client
use Keboola\BillingApi\Client;

$client = new Client(
    'http://billing.keboola.com/',
    'xxx-xxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
);
$credits = $client->getRemainingCredits();
var_dump($credits);

Run tests

  • With the above setup, you can run tests:

    docker-compose build
    docker-compose run tests
  • To run tests with local code use:

    docker-compose run tests-local composer install
    docker-compose run tests-local

License

MIT licensed, see LICENSE file.