stefna / skjalatilkynning-api-client
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 0
Open Issues: 0
pkg:composer/stefna/skjalatilkynning-api-client
Requires
- php: ^8.0
- ext-json: *
- stefna/api-client-runtime: ^1.0
Requires (Dev)
- circli/console: ^2.1.0
- stefna/codestyle: ^1.10
- stefna/http-client: ^1.0
- stefna/open-api-generator: 4.x-dev
- stefna/php-code-builder: ^2.0
This package is auto-updated.
Last update: 2025-09-29 03:07:51 UTC
README
Library to communicate with Island.is mailbox (Pósthólf)
Installation
composer require stefna/skjalatilkynning-api-client
Usage
Setup
Remember to install a PSR-7, PSR-17 and PSR-18
We recommend nyholm/psr7
and kriswallsmith/buzz
to fill does interfaces.
If does packages are installed the api-client will auto wire the clients and factories.
Setup for production use
$bearerToken = AuthSecurityValue::bearer('token'); $service = \SkjalatilkynningApiClient\Service::createWithSecurityValues($bearerToken);
Setup for testing use
$bearerToken = AuthSecurityValue::bearer('token'); $config = new SkjalatilkynningApiClient\ServerConfiguration($bearerToken); $config->selectServer('Development'); $service = SkjalatilkynningApiClient\Service::create($config);
Setup with custom psr implementations
$bearerToken = AuthSecurityValue::bearer('token'); $service = new SkjalatilkynningApiClient\Service( new SkjalatilkynningApiClient\ServerConfiguration($bearerToken), new GuzzleHttp\Client(), new GuzzleHttp\Psr7\HttpFactory(), );
License
The MIT License (MIT). Please see License File for more information.