PHP code example of brocc / se-bank-account

1. Go to this page and download the library: Download brocc/se-bank-account 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/ */

    

brocc / se-bank-account example snippets




rocc\SeBankAccount\Account;

// Instantiate using full account number incl. clearing number.
// Note: the number can be in any format, only digits are validated and used.
$account = new Account('3300-7505092556');

// Check if valid, returns true or false.
$account->isValid(); // true

// Returns the clearing number.
$account->clearing(); // 3300

// Returns the account number excl. clearing number, null if not valid.
$account->number(); // 7505092556

// Returns the name of the bank.
$account->bank(); // Nordea Personkonto