2017 © Pedro Peláez
 

library sbanken

PHP Wrapper for Sbanken (Norwegian bank) API.

image

pkj/sbanken

PHP Wrapper for Sbanken (Norwegian bank) API.

  • Thursday, March 8, 2018
  • by peec
  • Repository
  • 2 Watchers
  • 0 Stars
  • 9 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

Sbanken PHP Client for PHP 7.1+

A comprehensive PHP Client for Sbanken API., (*1)

Apis supported:, (*2)

  • Accounts
  • Transactions
  • Transfers

Install

Install using composer., (*3)

composer require pkj/sbanken:^1.0

Usage

See examples/ folder in this repo., (*4)

Examples

Make sure you have PHP 7.1+. We do not support lower versions., (*5)

Make sure you have signed up for skandiabanken developer and have client id and client secret. See sbanken website for info., (*6)

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.)., (*7)

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

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

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

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

The Versions

08/03 2018

dev-master

9999999-dev

PHP Wrapper for Sbanken (Norwegian bank) API.

  Sources   Download

MIT

The Requires

 

08/03 2018

1.0.5

1.0.5.0

PHP Wrapper for Sbanken (Norwegian bank) API.

  Sources   Download

MIT

The Requires

 

02/02 2018

1.0.4

1.0.4.0

PHP Wrapper for Sbanken (Norwegian bank) API.

  Sources   Download

MIT

The Requires

 

01/02 2018

1.0.3

1.0.3.0

PHP Wrapper for Sbanken (Norwegian bank) API.

  Sources   Download

MIT

The Requires

 

28/01 2018

1.0.2

1.0.2.0

PHP Wrapper for Sbanken (Norwegian bank) API.

  Sources   Download

MIT

The Requires

 

25/01 2018

1.0.1

1.0.1.0

PHP Wrapper for Sbanken (Norwegian bank) API.

  Sources   Download

MIT

The Requires

 

24/01 2018

1.0.0

1.0.0.0

PHP Wrapper for Skandiabanken (Norwegian bank) API.

  Sources   Download

MIT

The Requires