alancole/true-layer

A simple SDK for working with TrueLayer APIs

1.1 2019-03-28 11:59 UTC

README

Start a token request


$tl = new TrueLayer\Connection(
    $client_id,
    $client_secret,
    $redirect_uri
);

header('Location: ' . $tl->getAuthorizartionLink());

Exchange the token and get account info

$token = $tl->getOauthToken($code);

$accounts = (new TrueLayer\Bank\Accounts($tl, $token))
            ->getAllAccounts();

var_dump($accounts);

Contributors

Kevin Diem - kgdiem