PHPackages                             nordigen/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. nordigen/nordigen-php

ActiveLibrary[API Development](/categories/api)

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

Nordigen official API client for PHP

1.1.3(1y ago)42384.6k—1.1%17[9 issues](https://github.com/nordigen/nordigen-php/issues)[3 PRs](https://github.com/nordigen/nordigen-php/pulls)3MITPHPPHP &gt;=7.4

Since Apr 5Pushed 1y ago6 watchersCompare

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

READMEChangelog (7)Dependencies (3)Versions (9)Used By (3)

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

[](#nordigen-php-library)

### ⚠️ Notice

[](#️-notice)

Please be advised that the Bank Account Data libraries are no longer actively updated or maintained. While these libraries may still function, GoCardless will not provide further updates, bug fixes, or support for them.

This is official 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 nordigen/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 endpoin please contact our [bank-account-data-support@gocardless.com](bank-account-data-support@gocardless.com)

Tests
-----

[](#tests)

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

Support
-------

[](#support)

For any inquiries please contact support at [bank-account-data-support@gocardless.com](bank-account-data-support@gocardless.com) or create an issue in the repository.

###  Health Score

45

—

FairBetter than 91% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity49

Moderate usage in the ecosystem

Community28

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 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 ~157 days

Recently: every ~267 days

Total

8

Last Release

452d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/94f2cbcc5feadfe978b082c1d059fdd044f4be34a608044b020cfe78694ade60?d=identicon)[nordigen](/maintainers/nordigen)

---

Top Contributors

[![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)")[![pierrebnjl](https://avatars.githubusercontent.com/u/31212283?v=4)](https://github.com/pierrebnjl "pierrebnjl (1 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)")

---

Tags

apipsd2Open Bankingnordigen

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[resend/resend-php

Resend PHP library.

617.2M43](/packages/resend-resend-php)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)[checkout/checkout-sdk-php

Checkout.com SDK for PHP

563.6M13](/packages/checkout-checkout-sdk-php)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

783.8k](/packages/scriptdevelop-whatsapp-manager)

PHPackages © 2026

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