Giter Site home page Giter Site logo

laravel-nordigen's Introduction

Latest Version on Packagist Total Downloads

Unofficial Laravel library to integrate Nordigen inside our application and easily get details through User. banner

Installation

Via Composer

$ composer require hypnodev/laravel-nordigen

Publish the configuration with command:

$ php artisan vendor:publish --provider="Hypnodev\LaravelNordigen\LaravelNordigenServiceProvider" 

Add these keys in your .env:

NORDIGEN_SECRET_ID=
NORDIGEN_SECRET_KEY=

LARAVEL_NORDIGEN_SUCCESS_URI="/"

If you don't have yet credentials for Nordigen API, please refer to User Secrets | Open Banking Portal | Nordigen

Usage

Add HasNordigen trait to your User model

<?php

namespace App\Models;

use Hypnodev\LaravelNordigen\Traits\HasNordigen;
// ...

class User extends Authenticatable
{
    use Notifiable, HasNordigen;
    
    // ...
}

This will add nordigenRequisition, createRequisitionUrl, nordigenAccounts, nordigenAccountto your user.

Then you can create (and obtain link) requisition for bank (institution) with method:

<?php
auth()->user()->createRequisitionUrl('REVOLUT_REVOGB21');

and obtain accounts (wallet) information with these methods:

$accounts = $user->nordigenAccounts();
$account = $user->nordigenAccount($accounts[0]);
dd($account);

nordigenAccounts() accepts a requisition reference as optional parameter to get specified accounts for a certain bank otherwise it will take accounts for the first requisition available for this user.

Change log

Please see the changelog for more information on what has changed recently.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

Please see the license file for more information.

laravel-nordigen's People

Contributors

hypnodev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

coldpie

laravel-nordigen's Issues

Set transaction days

As I see now it is not possible to set the total days of transactions you want to receive. It is the default (90 days), but my bank supports 720 days. Is it possible to add this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.