PHP code example of pkj / sbanken-bundle

1. Go to this page and download the library: Download pkj/sbanken-bundle library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

pkj / sbanken-bundle example snippets


    new Pkj\Bundle\SbankenBundle\PkjSbankenBundle()

// Example, this can be run from controllers:

$bankAccountNumber = 11111111111;
$transactionRequest = new TransactionListRequest($bankAccountNumber);

$api = $transactions = $this->get('pkj_sbanken.client')->getApi();
$api->authorize();
$transactions = $api->Transactions()->getList($transactionRequest);
var_dump($transactions);
exit;