dimafe6/bank-id
Laravel package for working with BankID: send authentication/sign requests, collect results, and handle statuses. Includes configurable client setup, helpers, and examples for integrating BankID flows into your PHP app.
dimafe6/bank-id package is tailored for Swedish BankID authentication, a critical component for eIDAS-compliant digital identity verification in Sweden. It fits well in architectures requiring secure, government-approved authentication (e.g., financial services, e-government, or regulated SaaS platforms).Authenticatable, Guard). It can be plugged into existing Laravel apps with minimal refactoring.phpseclib (for cryptographic operations).guzzlehttp/guzzle (for HTTP requests).monolog/monolog (for logging).
Verify conflicts with existing Laravel stack (e.g., Guzzle version, PHP extensions like openssl, soap).users table or a dedicated bank_id_credentials table). The TPM should assess:
phpseclib).bankid/bankid-sdk-php (official SDK).INVALID_USER, TIMEOUT) mapped to Laravel exceptions?bankid/bankid-sdk-php)?BankIdMiddleware) to protect routes requiring BankID auth.// config/bankid.php
'client_id' => env('BANKID_CLIENT_ID'),
'client_secret' => env('BANKID_CLIENT_SECRET'),
'sandbox' => env('BANKID_SANDBOX', false),
// app/Providers/BankIdServiceProvider.php
public function register()
{
$this->app->singleton(BankIdClient::class, function ($app) {
return new BankIdClient(
config('bankid.client_id'),
config('bankid.client_secret'),
config('bankid.sandbox')
);
});
}
bankid:// deep links (mobile) or browser redirects (desktop).BankIdGuard).personal_number, auth_token) in the database.soap, openssl, and fileinfo extensions are enabled.client_id and client_secret.composer require dimafe6/bank-id..env and config/bankid.php.BankIdGuard or extend existing auth logic.BankIdController to handle redirects and callbacks.dimafe6/bank-id or its dependencies.How can I help you explore Laravel packages today?