marshmallow/iban 问题修复 & 功能扩展

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

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

marshmallow/iban

Composer 安装命令:

composer require marshmallow/iban

包简介

With this package you will be able to check iban numbers and get BIC information.

README 文档

README

alt text

IBAN

Latest Version on Packagist Total Downloads License

With this package you will be able to validate IBAN numbers and get BIC information.

Installation

Install the package via Composer:

composer require marshmallow/iban

The package requires PHP ^7.0|^8.0. Everything is exposed through static methods, so there is nothing to register or configure.

Usage

The package exposes a single class, Marshmallow\IBAN\IBAN, with three static methods.

Validate an IBAN

Call Marshmallow\IBAN\IBAN::validate($iban) to check whether the provided IBAN is valid. Returns true or false. Spaces are ignored, so both spaced and unspaced IBANs are accepted.

use Marshmallow\IBAN\IBAN;

IBAN::validate('NL93 RABO 0317 7456 46'); // true
IBAN::validate('NL00RABO0000000000');     // false

Get the bank account number

Call Marshmallow\IBAN\IBAN::getBankAccount($iban) to get the bank account number. Returns the account number as a string, or null when the IBAN is not valid.

use Marshmallow\IBAN\IBAN;

IBAN::getBankAccount('NL93RABO0317745646'); // "317745646"

Get the BIC from an IBAN

Call Marshmallow\IBAN\IBAN::getBic($iban) to look up the BIC information for an IBAN. Returns an array when a match is found, or null when the IBAN is invalid or no match exists.

use Marshmallow\IBAN\IBAN;

IBAN::getBic('NL93RABO0317745646');
[
    "bic"            => "RABONL2U",
    "identifier"     => "RABO",
    "name"           => "RABOBANK",
    "iban"           => "NL93RABO0317745646",
    "account_number" => "317745646",
]

Tests during development

When the package is installed as a path dependency inside a host application, you can run its tests with:

php artisan test packages/marshmallow/iban

Security Vulnerabilities

Please report security vulnerabilities by email to stef@marshmallow.dev rather than via the public issue tracker.

Credits

License

The MIT License (MIT).

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-05-29

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固