kgdiem / true-layer-upstream
A simple SDK for working with TrueLayer APIs
Installs: 179
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 6
pkg:composer/kgdiem/true-layer-upstream
Requires
- guzzlehttp/guzzle: ^6.3
 
Requires (Dev)
- filp/whoops: ^2.3
 
This package is auto-updated.
Last update: 2025-10-15 18:33:53 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);