keboola / billing-api-php-client
PHP Client for Keboola Connection Billing API
Installs: 5 654
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 18
Forks: 0
Open Issues: 0
Requires
- php: >=8.1
- ext-json: *
- keboola/storage-api-client: ^14.0
- symfony/validator: ^6.0
Requires (Dev)
- keboola/coding-standard: >=15.0
- phpstan/phpstan: ^1.8
- phpstan/phpstan-phpunit: ^1.1
- phpunit/phpunit: ^9.5
- sempro/phpunit-pretty-print: ^1.4
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.