keboola / billing-api-php-client
Keboola Connection 计费 API 的 PHP 客户端
5.0.0
2024-01-15 14:45 UTC
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
计费 API 的 PHP 客户端 (API 文档)。
用法
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);
运行测试
-
在上述设置中,您可以运行测试
docker-compose build docker-compose run tests
-
使用本地代码运行测试
docker-compose run tests-local composer install docker-compose run tests-local
许可
MIT 许可,见 LICENSE 文件。