brocc/se-bank-account
Composer 安装命令:
composer require brocc/se-bank-account
包简介
Swedish bank account details and validation for PHP
关键字:
README 文档
README
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!
brocc/se-bank-account 适用场景与选型建议
brocc/se-bank-account 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 71.8k 次下载、GitHub Stars 达 3, 最近一次更新时间为 2020 年 09 月 23 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「validation」 「Bank」 「account」 「Swedish」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 brocc/se-bank-account 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 brocc/se-bank-account 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 brocc/se-bank-account 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Symfony Simple User Bundle
Symfony integration for Czech bank account library
PHP IBAN - This library provides a converter for account number, bank code and IBAN.
UserBase PHP Client: Identity + Login + Signup Service
A module for Pluf to manage user profiles and user accounts
Check for holidays - localeaware
统计信息
- 总下载量: 71.8k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 18
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-09-23