PHP client for the Billing API (API docs).
composer require keboola/billing-api-php-clientuse Keboola\BillingApi\Client;
$client = new Client(
'http://billing.keboola.com/',
'xxx-xxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
);
$credits = $client->getRemainingCredits();
var_dump($credits);-
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
MIT licensed, see LICENSE file.