hypnodev/laravel-nordigen 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

hypnodev/laravel-nordigen

最新稳定版本:1.0.0

Composer 安装命令:

composer require hypnodev/laravel-nordigen

包简介

README 文档

README

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 me@cristiancosenza.com instead of using the issue tracker.

Credits

License

Please see the license file for more information.

统计信息

  • 总下载量: 12
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 9
  • 点击次数: 5
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 9
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2023-01-11