brocc/se-bank-account 问题修复 & 功能扩展

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

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

brocc/se-bank-account

最新稳定版本:v1.1.0

Composer 安装命令:

composer require brocc/se-bank-account

包简介

Swedish bank account details and validation for PHP

README 文档

README

Build Status Latest Version License: MIT

This package easily validates and returns details about Swedish bank account numbers using PHP. The details and validation rules are based on the documentation provided by Bankgirot, which can be found here.

Installation

Installing the Swedish Bank Account for PHP can be done using Composer.

composer require brocc/se-bank-account

Usage

Usage is very straight forward, just create a new instance of Brocc\SeBankAccount\Account which takes a string or an integer as argument and returns the details about the given number such as clearing number, account number and the name of the bank (if valid).

<?php

require 'vendor/autoload.php';

use Brocc\SeBankAccount\Account;

// Instantiate using full account number incl. clearing number.
// Note: the number can be in any format, only digits are validated and used.
$account = new Account('3300-7505092556');

// Check if valid, returns true or false.
$account->isValid(); // true

// Returns the clearing number.
$account->clearing(); // 3300

// Returns the account number excl. clearing number, null if not valid.
$account->number(); // 7505092556

// Returns the name of the bank.
$account->bank(); // Nordea Personkonto

If an account is not valid $account->isValid() will return false and the other methods will return null.

Supported Banks

Following Swedish banks are currently supported:

  • Aion Bank SA
  • Avanza Bank
  • BNP Paribas SA
  • Bankgirot
  • BlueStep Finans
  • Citibank
  • DNB Bank
  • Danske Bank
  • Ekobanken
  • Erik Penser
  • Forex Bank (discontinued*)
  • Handelsbanken
  • IKANO Bank
  • Ica Banken
  • JAK Medlemsbank
  • Klarna Bank
  • Landshypotek
  • Lunar Bank A/S
  • Länsförsäkringar Bank
  • Lån & Spar Bank Sverige
  • Marginalen Bank
  • MedMera Bank (discontinued*)
  • Multitude Bank plc
  • Nordax Bank (NOBA Bank Group**)
  • Nordea
  • Nordea Personkonto
  • Nordea/Plusgirot
  • Nordnet Bank
  • Northmill Bank
  • Resurs Bank
  • Riksgälden
  • SBAB
  • SEB
  • Santander Consumer Bank
  • Skandiabanken
  • Sparbanken Syd
  • Svea Bank
  • Swedbank
  • Swedbank fd. Sparbanken Öresund
  • Ålandsbanken Sverige AB

* Bank is currently not available in Bankgirot's documentation, available in package for backwards compatibility.
** Package will return Nordax Bank, even though the company name has changed to NOBA Bank Group.

Contributing

If you find a bug or a bank that might not be supported, please submit an issue on Github directly under issues.

Any contributions are welcome!

统计信息

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

GitHub 信息

  • Stars: 3
  • Watchers: 3
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 未知

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固