PHPackages                             pkj/sbanken - 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. pkj/sbanken

ActiveLibrary[API Development](/categories/api)

pkj/sbanken
===========

PHP Wrapper for Sbanken (Norwegian bank) API.

1.0.5(8y ago)02031MITPHPPHP &gt;=7.1

Since Jan 24Pushed 8y ago2 watchersCompare

[ Source](https://github.com/peec/sbanken)[ Packagist](https://packagist.org/packages/pkj/sbanken)[ RSS](/packages/pkj-sbanken/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (6)Dependencies (1)Versions (7)Used By (1)

Sbanken PHP Client for PHP 7.1+
===============================

[](#sbanken-php-client-for-php-71)

A comprehensive PHP Client for Sbanken API.

Apis supported:

- Accounts
- Transactions
- Transfers

Install
=======

[](#install)

Install using composer.

```
composer require pkj/sbanken:^1.0

```

Usage
=====

[](#usage)

See [examples/](https://github.com/peec/sbanken/tree/master/examples) folder in this repo.

Examples
========

[](#examples)

Make sure you have PHP 7.1+. We do not support lower versions.

Make sure you have signed up for skandiabanken developer and have client id and client secret. See sbanken website for info.

```
git clone git@github.com:peec/sbanken.git
cd sbanken
composer install
cd examples

```

Run the following commands to test. Note to change the environment variables (CLIENT\_ID, CLIENT\_SECRET, etc.).

### Listing bank accounts

[](#listing-bank-accounts)

```
CLIENT_ID="x" \
CLIENT_SECRET="Y" \
CUSTOMER_ID="your person number" \
php accounts.php
```

### Listing a specific bank account by account number

[](#listing-a-specific-bank-account-by-account-number)

```
ACCOUNT_NUMBER="11 digit bank account number" \
CLIENT_ID="x" \
CLIENT_SECRET="Y" \
CUSTOMER_ID="your person number" \
php single-account.php
```

### Listing transactions for a given bank account number

[](#listing-transactions-for-a-given-bank-account-number)

```
ACCOUNT_NUMBER="11 digit bank account number" \
CLIENT_ID="x" \
CLIENT_SECRET="Y" \
CUSTOMER_ID="your person number" \
php transactions.php
```

### Transfer KR 1 NOK to some account

[](#transfer-kr-1-nok-to-some-account)

```
FROM="11 digit bank account number" \
TO="11 digit bank account number" \
MONEY="1" \
CLIENT_ID="x" \
CLIENT_SECRET="Y" \
CUSTOMER_ID="your person number" \
php transactions.php
```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 76.9% 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 ~8 days

Total

6

Last Release

3036d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/88b748fa2f0dcacab307a6305e98032de7adb93f955bbaf3c6fe029a7369ac84?d=identicon)[peec](/maintainers/peec)

---

Top Contributors

[![peec](https://avatars.githubusercontent.com/u/131546?v=4)](https://github.com/peec "peec (10 commits)")[![HNygard](https://avatars.githubusercontent.com/u/168380?v=4)](https://github.com/HNygard "HNygard (3 commits)")

### Embed Badge

![Health badge](/badges/pkj-sbanken/health.svg)

```
[![Health](https://phpackages.com/badges/pkj-sbanken/health.svg)](https://phpackages.com/packages/pkj-sbanken)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k33](/packages/neuron-core-neuron-ai)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.3M7](/packages/avalara-avataxclient)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2478.1k](/packages/filescom-files-php-sdk)[aimeos/prisma

A powerful PHP package for integrating media related Large Language Models (LLMs) into your applications

1942.4k4](/packages/aimeos-prisma)

PHPackages © 2026

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