uxf / energo-kalkulator-sdk
1.40.0
2026-05-14 13:57 UTC
Requires
- php: ^8.3
- psr/http-client: ^1.0
- psr/http-factory: ^1.0
- uxf/storage: ^3.31.1
- dev-main
- 1.40.0
- 1.39.1
- 1.39.0
- 1.38.0
- 1.37.0
- 1.36.0
- 1.35.1
- 1.35.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.24.0
- 1.23.1
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.0
- 1.11.0
- 1.10.0
- 1.9.0
- 1.8.0
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.0
- 1.3.0
- 1.2.0
- 1.1.0
- 1.0.0
This package is auto-updated.
Last update: 2026-05-14 12:08:03 UTC
README
Install
$ composer req uxf/energo-kalkulator-sdk
// bundles.php
return [
UXFCoreBundle::class => ['all' => true];
UXFHydratorBundle::class => ['all' => true];
EnergokalkulatorBundle::class => ['all' => true];
];
Config
// packages/energo_kalkulator.php
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
return static function (ContainerConfigurator $containerConfigurator): void {
$containerConfigurator->extension('energo_kalkulator', [
'base_url' => 'https://xxx.com', // optional
'api_key' => env('API_KEY'),
]);
};
Usage
use EnergoKalkulator\EnergoKalkulatorService;
class MagicService
{
public function __construct(private readonly EnergoKalkulatorService $service)
{
}
public function run()
{
$data = $service->getGasEstimateWithPrepaid(
currentPartner: 1,
currentProduct: 1,
distributor: 85,
prepaid: 3333,
);
}
}