PHPackages                             stuartajd/nordigen-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. stuartajd/nordigen-php

ActiveLibrary[API Development](/categories/api)

stuartajd/nordigen-php
======================

Nordigen API client for PHP

1.1.7(1mo ago)0584MITPHPPHP &gt;=7.4

Since Sep 12Pushed 5mo agoCompare

[ Source](https://github.com/stuartajd/nordigen-php)[ Packagist](https://packagist.org/packages/stuartajd/nordigen-php)[ Docs](https://nordigen.com)[ RSS](/packages/stuartajd-nordigen-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (6)Versions (4)Used By (0)

Nordigen PHP Library
====================

[](#nordigen-php-library)

This is a PHP client library for [GoCardless Bank Account Data](https://gocardless.com/bank-account-data/).

For a full list of endpoints and arguments, see the [docs](https://developer.gocardless.com/bank-account-data/quick-start-guide).

Before starting to use API you will need to create a new secret and get your `SECRET_ID` and `SECRET_KEY` from the [Nordigen's Open Banking Portal](https://bankaccountdata.gocardless.com/user-secrets/).

Requirements
------------

[](#requirements)

- PHP &gt;= 7.4

Installation
------------

[](#installation)

Install library via composer:

```
composer require stuartajd/nordigen-php
```

Example application
-------------------

[](#example-application)

Laravel example application can be found in `example` directory

Quickstart
----------

[](#quickstart)

To use the library, use Composer's [autoload](https://getcomposer.org/doc/01-basic-usage.md#autoloading):

```
require_once('vendor/autoload.php');
```

```
// Get secretId and secretKey from bankaccoutndata.gocardless.com portal and pass them to NordigenClient
$secretId  = "YOUR_SECRET_ID";
$secretKey = "YOUR_SECRET_KEY";

$client = new \Nordigen\NordigenPHP\API\NordigenClient($secretId, $secretKey);

// Generate new access token. Token is valid for 24 hours
// Token is automatically injected into every response
$token = $client->createAccessToken();

// Get access token
$accessToken = $client->getAccessToken();
// Get refresh token
$refreshToken = $client->getRefreshToken();

// Exchange refresh token for new access token
$newToken = $client->refreshAccessToken($refreshToken);

// Get list of institutions by country. Country should be in ISO 3166 standard.
$institutions = $client->institution->getInstitutionsByCountry("LV");

// Institution id can be gathered from getInstitutions response.
// Example Revolut ID
$institutionId = "REVOLUT_REVOGB21";
$redirectUri = "https://nordigen.com";

// Initialize new bank connection session
$session = $client->initSession($institutionId, $redirectUri);

// Get link to authorize in the bank
// Authorize with your bank via this link, to gain access to account data
$link = $session["link"];
// requisition id is needed to get accountId in the next step
$requisitionId = $session["requisition_id"];
```

After successful authorization with a bank you can fetch your data (details, balances, transactions)

Fetching account metadata, balances, details and transactions
-------------------------------------------------------------

[](#fetching-account-metadata-balances-details-and-transactions)

```
// Get account id after completed authorization with a bank
$requisitionData = $client->requisition->getRequisition($requisitionId);
// Get account id from the array of accounts
$accountId = $requisitionData["accounts"][0];

// Instantiate account object
$account = $client->account($accountId);

// Fetch account metadata
$metadata = $account->getAccountMetaData();
// Fetch account balances
$balances = $account->getAccountBalances();
// Fetch account details
$details = $account->getAccountDetails();
// Fetch account transactions
$transactions = $account->getAccountTransactions();

// Optional. You can filter transactions by specific date range
$transactions = $account->getAccountTransactions("2021-12-01", "2022-01-30");

// Get premium transactions
// Optional parameters country, dateFrom, dateTo
$premiumTransactions = $account->getPremiumAccountTransactions();
```

In order to use Premium endpoints please contact our [bank-account-data-support@gocardless.com](bank-account-data-support@gocardless.com)

Tests
-----

[](#tests)

```
./vendor/bin/phpunit
```

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance78

Regular maintenance activity

Popularity18

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~97 days

Total

3

Last Release

54d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4028825?v=4)[Stuart Davidson](/maintainers/stuartajd)[@stuartajd](https://github.com/stuartajd)

---

Top Contributors

[![stuartajd](https://avatars.githubusercontent.com/u/4028825?v=4)](https://github.com/stuartajd "stuartajd (15 commits)")[![victory-sokolov](https://avatars.githubusercontent.com/u/11943459?v=4)](https://github.com/victory-sokolov "victory-sokolov (14 commits)")[![MikolajKaminski](https://avatars.githubusercontent.com/u/24697099?v=4)](https://github.com/MikolajKaminski "MikolajKaminski (5 commits)")[![ekatvars-gc](https://avatars.githubusercontent.com/u/137259456?v=4)](https://github.com/ekatvars-gc "ekatvars-gc (4 commits)")[![safriks](https://avatars.githubusercontent.com/u/49246419?v=4)](https://github.com/safriks "safriks (1 commits)")[![Volsund](https://avatars.githubusercontent.com/u/38664119?v=4)](https://github.com/Volsund "Volsund (1 commits)")[![aled2305](https://avatars.githubusercontent.com/u/7943772?v=4)](https://github.com/aled2305 "aled2305 (1 commits)")[![zhavoronkov](https://avatars.githubusercontent.com/u/8795787?v=4)](https://github.com/zhavoronkov "zhavoronkov (1 commits)")[![CihanSenturk](https://avatars.githubusercontent.com/u/53110792?v=4)](https://github.com/CihanSenturk "CihanSenturk (1 commits)")[![lanort](https://avatars.githubusercontent.com/u/57423?v=4)](https://github.com/lanort "lanort (1 commits)")[![pierrebnjl](https://avatars.githubusercontent.com/u/31212283?v=4)](https://github.com/pierrebnjl "pierrebnjl (1 commits)")

---

Tags

apipsd2Open Bankingnordigen

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/stuartajd-nordigen-php/health.svg)

```
[![Health](https://phpackages.com/badges/stuartajd-nordigen-php/health.svg)](https://phpackages.com/packages/stuartajd-nordigen-php)
```

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[nordigen/nordigen-php

Nordigen official API client for PHP

42336.9k3](/packages/nordigen-nordigen-php)[bunq/sdk_php

bunq PHP SDK

89222.7k2](/packages/bunq-sdk-php)[get-stream/stream-chat

A PHP client for Stream Chat (https://getstream.io/chat/)

301.8M2](/packages/get-stream-stream-chat)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
