dexes / clearing-sdk
Dexes package providing a SDK for interacting with the Clearing component.
0.6.1
2025-03-11 15:31 UTC
Requires
- php: ^8.2
- firebase/php-jwt: ^v6.8
- psr/log: ^1.0 || ^2.0 || ^3.0
- psr/simple-cache: ^3.0
- xpertselect/psr-tools: ^2.0
Requires (Dev)
- guzzlehttp/guzzle: ^7.5
- xpertselect/tools: ^1.0
README
gitlab.com/dexes.eu/clearing-sdk
Dexes package providing a SDK for interacting with the Clearing component.
License
View the LICENSE.md
file for licensing details.
Installation
Installation of ...
composer require dexes/catalog-sdk
Usage
Laravel
Add the following code to the AppServiceProvider.
$this->app->bind(HttpRequestService::class, function() {
return new HttpRequestService(
'https://policystore.dev.dexes.eu',
$this->app->make(ClientInterface::class),
$this->app->make(RequestFactoryInterface::class),
$this->app->make(StreamFactoryInterface::class),
);
});
$this->app->bind(AuthRepository::class, function() {
return new AuthRepository(
$this->app->make(HttpRequestService::class),
config('services.ishare.satellites.DMI.x5c'),
'NL.EORI.LIFEELEC4DMI',
config('services.ishare.clientId'),
config('services.ishare.satellites.DMI.private-key')
);
});
$this->app->bind(ClearingSdk::class, function() {
return new ClearingSdk(
$this->app->make(HttpRequestService::class),
$this->app->make(AuthRepository::class),
$this->app->make(LoggerInterface::class),
$this->app->make(CacheInterface::class),
);
});
Drupal
We will create a Drupal Module which will be available here as soon as it is published