donejeh/nuban 问题修复 & 功能扩展

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

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

donejeh/nuban

最新稳定版本:2.0.0

Composer 安装命令:

composer require donejeh/nuban

包简介

You can use it to get the account name of any bank account in Nigeria

README 文档

README

You can use it to get the account name of any bank account in Nigeria

  • Lifetime Access. Unlimited Account Lookups

  • Enter account number and get the name and bank

  • Enter account number and bank code to get the account name

install via composer

composer require donejeh/nuban

Application Service Providers...

 Donejeh\Nuban\NubapiServiceProvider::class

Publish the config file

php artisan vendor:publish --provider="Donejeh\Nuban\NubapiServiceProvider" --tag="config"

Default config file contents

<?php

return [


    // The Host of the API.
    'host' => env('NUB_API_HOST', 'https://nubapi.com/api'),


    /**
     * Your API Token from (https://nubapi.com/user/api-tokens)
     *
     */
    'api_token' => env('NUB_API_TOKEN', ''),



     'options' => [
            // Validate number on your server without making an APi request.
            'validate_number_locally' => true,

             //This timeout applies to client connections and determine when
             //The whole response must be read before it exceeded
             'request_timeout' => 5,

        ]



];

API Usage

Sign up for a developer account by selecting the Sign Up button. After signing up, access your account dashboard.

You can follow these steps to obtain your API key and configure it in your application:

  1. Go to the API Create Access Tokens page.

  2. Generate your unique API key.

  3. Once you have your API key, insert it into either your .env file or the configuration file.

In your app controller

use Donejeh\Nuban\Nubapi;


$nubanApi = app(NubApi::class);
$response = $nubanApi->getAccountDetails('1056684123', '013');

print_r($response);


Response JSON

{
    "account_number": "0080******",
    "account_name": "Jane Doe",
    "first_name: : "Jane"
    "last_name: : "Doe"
    "Bank_name": "ACCESS BANK PLC",
    "bank_code": "044",
    "requests": "Free",
    "status": "success"
}

Useful links

For support and inquiry Whatsapp Me https://twitter.com/don_ejeh

A wrap and Special thank to https://github.com/olakunlevpn/Nigeria-Bank-Account-Number-API

Legal

Its very legal & safe

Security

Our API is highly secure and our system do not store any bank record

统计信息

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

GitHub 信息

  • Stars: 12
  • Watchers: 1
  • Forks: 6
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-03-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固