karlroos / bank
Wrappers for accessing Swedish banks. Currently supports Handelsbanken and SEB.
Installs: 18
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/karlroos/bank
This package is not auto-updated.
Last update: 2022-08-13 16:35:45 UTC
README
Wrappers for accessing Swedish banks. Currently supports Handelsbanken and SEB.
Usage
Include KarlRoos/bank in your composer.json file for your project and install.
Create an instance of the bank you'd like to use like this:
$seb = new \KarlRoos\Bank\SEB;
Login by calling the login() method:
$seb->login($username, $password);
Fetch accounts by calling the getAccounts() method:
$accounts = $seb->getAccounts();
This method returns an array with \KarlRoos\Bank\Transaction objects. To fetch transactions for a specific account you provide the Transaction object the getTransactions():
$transactions = $seb->getTransactions($accounts[0]);