PHPackages                             nicklasw/bankid-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. nicklasw/bankid-sdk

ActiveLibrary[API Development](/categories/api)

nicklasw/bankid-sdk
===================

BankID SDK API client

1.1.0(7y ago)4151[1 issues](https://github.com/NicklasWallgren/bankid-sdk/issues)MITPHPPHP ^7.1

Since Oct 13Pushed 7y ago2 watchersCompare

[ Source](https://github.com/NicklasWallgren/bankid-sdk)[ Packagist](https://packagist.org/packages/nicklasw/bankid-sdk)[ RSS](/packages/nicklasw-bankid-sdk/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (8)Versions (7)Used By (0)

BankID SDK library
==================

[](#bankid-sdk-library)

A SDK for providing BankID services as a RP (Relying party). Supports the latest v5 features.

[![PHP7.1 Ready](https://camo.githubusercontent.com/71c048b50d0375296133b5035d869a576e42047af4b3011f5c7bd485b3e2e9dd/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f50485037312d72656164792d677265656e2e737667)](https://packagist.org/packages/nicklasw/bankid-sdk)[![Latest Stable Version](https://camo.githubusercontent.com/d778810835498de69b284846dc2fbe81ece7dbc5933bfe897ad66a0a5b728d5e/68747470733a2f2f706f7365722e707567782e6f72672f6e69636b6c6173772f62616e6b69642d73646b2f762f737461626c65)](https://packagist.org/packages/nicklasw/bankid-sdk)[![Latest Unstable Version](https://camo.githubusercontent.com/d8b73457791c59761a507a04288dbe94f0c55a7c15f551eb7e3b8a4ef8677ae8/68747470733a2f2f706f7365722e707567782e6f72672f6e69636b6c6173772f62616e6b69642d73646b2f762f756e737461626c65)](https://packagist.org/packages/nicklasw/bankid-sdk)[![Build Status](https://camo.githubusercontent.com/ec1a6ed17e5a7e935e3e678ac392bb9a305a9497dd3da2b9dabdf38a24027291/68747470733a2f2f7472617669732d63692e6f72672f4e69636b6c617357616c6c6772656e2f62616e6b69642d73646b2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/NicklasWallgren/bankid-sdk)[![License](https://camo.githubusercontent.com/d06694e58490cfbd5b4d92dc9f0a9e04df12c142ed19529035eda0ea1dbbc255/68747470733a2f2f706f7365722e707567782e6f72672f6e69636b6c6173772f62616e6b69642d73646b2f6c6963656e7365)](https://packagist.org/packages/nicklasw/bankid-sdk)

Installation
============

[](#installation)

The library can be installed through `composer`

```
composer require nicklasw/bankid-sdk
```

Features
========

[](#features)

- Supports all v5 features
- Supports asynchronous and parallel requests

Examples
========

[](#examples)

Initiate authenticate request
-----------------------------

[](#initiate-authenticate-request)

```
$client = new Client(new Config());

$authenticationResponse = $client->authenticate(new AuthenticationPayload(, ));

if (!$authenticationResponse->isSuccess()) {
    var_dump($authenticationResponse->getErrorCode(), $authenticationResponse->getDetails());

    return;
}

$collectResponse = $authenticationResponse->collect();
```

Execute parallel requests
-------------------------

[](#execute-parallel-requests)

```
$client = new ClientAsynchronous(new Config());

$promises[] = $client->authenticate(new AuthenticationPayload(, ));
$promises[] = $client->authenticate(new AuthenticationPayload(, ));

// Parallel requests, authenticate users
foreach (unwrap($promises) as $result) {
    /**
     * @var AuthenticationResponse $result
     */
    var_dump($result->isSuccess());
}
```

Certificates
============

[](#certificates)

The web service API can only be accessed by a RP that has a valid SSL client certificate. The RP certificate is obtained from the bank that the RP has purchased the BankID service from.

Generate PEM certificate
------------------------

[](#generate-pem-certificate)

```
openssl pkcs12 -in .pfx -out .pem -nodes
```

Docker
------

[](#docker)

```
make && make bash
```

Unit tests
----------

[](#unit-tests)

```
composer run test
```

Contributing
------------

[](#contributing)

- Fork it!
- Create your feature branch: `git checkout -b my-new-feature`
- Commit your changes: `git commit -am 'Useful information about your new features'`
- Push to the branch: `git push origin my-new-feature`
- Submit a pull request

Contributors
------------

[](#contributors)

- [Nicklas Wallgren](https://github.com/NicklasWallgren)
- [All Contributors](../../contributors)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

3

Last Release

2684d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/20e2c1973989bb1f890f95fc0e4f074ca00812c61ee5ef793ccaddc7e7d26de2?d=identicon)[NicklasWallgren](/maintainers/NicklasWallgren)

---

Top Contributors

[![NicklasWallgren](https://avatars.githubusercontent.com/u/1784879?v=4)](https://github.com/NicklasWallgren "NicklasWallgren (16 commits)")

---

Tags

asynchronousbank-idbankidclientphpphp71reactive-programmingsdk

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/nicklasw-bankid-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/nicklasw-bankid-sdk/health.svg)](https://phpackages.com/packages/nicklasw-bankid-sdk)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
