PHPackages                             e2consult/dnb-client - 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. e2consult/dnb-client

AbandonedArchivedLibrary[API Development](/categories/api)

e2consult/dnb-client
====================

An API Tool that allows you to easily communicate with DNBs new API using Laravel.

1.0.1(7y ago)311MITPHPPHP ^7.2

Since Apr 17Pushed 7y agoCompare

[ Source](https://github.com/einar-hansen/laravel-dnb-client)[ Packagist](https://packagist.org/packages/e2consult/dnb-client)[ RSS](/packages/e2consult-dnb-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

DNB Laravel API Client
======================

[](#dnb-laravel-api-client)

[![Latest Version on Packagist](https://camo.githubusercontent.com/ea73474bc3caab41f991955cbea99c46a3c8962a69c3d1050f925b08422772f9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6532636f6e73756c742f646e622d636c69656e742e737667)](https://packagist.org/packages/e2consult/dnb-client)[![Quality Score](https://camo.githubusercontent.com/62d33e2c5983deb7fa66e2528169e30df3f444427f3d881abe5515fe73e70977/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f65322d636f6e73756c742f646e622d6c61726176656c2d636c69656e742e737667)](https://scrutinizer-ci.com/g/e2-consult/dnb-laravel-client)[![License](https://camo.githubusercontent.com/4e21152e98f29f7e13b592b14226431d7290415160062bb15cd817e536377029/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6532636f6e73756c742f646e622d636c69656e742e737667)](https://packagist.org/packages/e2consult/dnb-client)[![Total Downloads](https://camo.githubusercontent.com/252b6bdf17a7c689e749610ad41fb4be56414201119ab3f3e439fa62f768ba24/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6532636f6e73756c742f646e622d636c69656e742e737667)](https://packagist.org/packages/e2consult/dnb-client)[![StyleCI](https://camo.githubusercontent.com/d0f86b845e3ff95241b55c898eb11da140eb50b0351b979f9381fef94c17eccb/68747470733a2f2f7374796c6563692e696f2f7265706f732f3138313835343430322f736869656c64)](https://styleci.io/repos/181854402)

E2Consult is a webdevelopment team based in Oslo, Norway. You'll find more information about us [on our website](https://e2consult.no).

This package is made to easily communicate with DNBs API using PHP and Laravel, [read more about the API](https://github.com/DNBbank/getting-started).

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

[](#installation)

You can install the package via composer:

```
composer require e2consult/dnb-client
```

Then you need to set your credentials in the .env file, and add the following array to your config/services.php file.

```
    'dnb' => [
        'client_id'     => env('DNB_CLIENT_ID'),
        'client_secret' => env('DNB_CLIENT_SECRET'),
        'api_key'       => env('DNB_API_KEY'),
        'region'       => env('DNB_REGION', 'eu-west-1'),
        'service'       => env('DNB_SERVICE', 'execute-api'),
        'endpoint'       => env('DNB_ENDPOINT', 'https://developer-api-sandbox.dnb.no'),
    ],
```

Usage
-----

[](#usage)

To get going you only need to pass the relevant customer ID when creating the client.

```
    use E2Consult\DNBApiClient\Client;

    $client = new Client($customerId);

    // Customer
    $client->getCustomerDetails();

    // Accounts
    $client->getAccounts();
    $client->getAccountDetails($accountNumber);
    $client->getAccountBalance($accountNumber);
    $client->getAccountTransactions($accountNumber, $from, $to);

    // Payments
    $client->initiatePayment($debitAccountNumber, $creditAccountNumber, $amount, $requestedExecutionDate);
    $client->updatePayment($accountNumber, $paymentId, $debitAccountNumber, $amount, $status, $requestedExecutionDate);
    $client->deletePayment($accountNumber, $paymentId);
    $client->getDuePayments($accountNumber);
    $client->getDuePayment($accountNumber, $paymentId);

    // Currencies
    $client->getCurrencyRates();
    $client->convertCurrency($targetCurrency);

    // Location
    $client->getBranches();
    $client->getBranch($branchId);
    $client->getATMs();

    $client->getNearestBranch($address);
    // or
    $client->getNearestBranch([$latitude, $longitude]);
    $client->getNearestATM($latitude = 0, $longitude = 0);
```

License
-------

[](#license)

The MIT License (MIT).

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

Unknown

Total

1

Last Release

2579d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7867c8e6cb949ab73460f6189d49e8423431864c495a389e650e82509e44d954?d=identicon)[einar-hansen](/maintainers/einar-hansen)

---

Top Contributors

[![einar-hansen](https://avatars.githubusercontent.com/u/49709354?v=4)](https://github.com/einar-hansen "einar-hansen (1 commits)")

---

Tags

laravelDNBDNB api

### Embed Badge

![Health badge](/badges/e2consult-dnb-client/health.svg)

```
[![Health](https://phpackages.com/badges/e2consult-dnb-client/health.svg)](https://phpackages.com/packages/e2consult-dnb-client)
```

###  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)[vluzrmos/slack-api

Wrapper for Slack.com WEB API.

102589.1k3](/packages/vluzrmos-slack-api)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

762.6k](/packages/scriptdevelop-whatsapp-manager)[vahidkaargar/bamboo-card-portal

This is Bamboocardportal.com package

162.0k](/packages/vahidkaargar-bamboo-card-portal)

PHPackages © 2026

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