All Projects → chekalsky → Php Banks Db

chekalsky / Php Banks Db

Licence: mit
PHP library for getting bank info (name, brand color etc) by first digits of card's number

Projects that are alternatives of or similar to Php Banks Db

bank2ynab
Easily convert and import your bank's statements into YNAB. This project consolidates other conversion efforts into one universal tool.
Stars: ✭ 197 (+48.12%)
Mutual labels:  bank, credit-card
Go Payment
Payment Connector for Midtrans and Xendit. Sample site that is using this payment proxy is https://imrenagi.com/donate
Stars: ✭ 136 (+2.26%)
Mutual labels:  bank, credit-card
Sdk python
Python SDK for bunq API
Stars: ✭ 77 (-42.11%)
Mutual labels:  bank
Swiftcodes
Swift Codes or BIC Codes for all the Banks in the world. Cached to json.
Stars: ✭ 127 (-4.51%)
Mutual labels:  bank
Banking System
A banking System Created Using Django Python Web Framework
Stars: ✭ 105 (-21.05%)
Mutual labels:  bank
Epics
EBICS client for Ruby
Stars: ✭ 86 (-35.34%)
Mutual labels:  bank
N26
API and CLI to get information of your N26 account
Stars: ✭ 107 (-19.55%)
Mutual labels:  bank
Omise Ios
Omise iOS SDK
Stars: ✭ 63 (-52.63%)
Mutual labels:  credit-card
N26
💳 Un-official node.js module for interact with your N26 (previously Number26) account
Stars: ✭ 128 (-3.76%)
Mutual labels:  bank
Creditcardform Ios
CreditCardForm is iOS framework that allows developers to create the UI which replicates an actual Credit Card.
Stars: ✭ 1,431 (+975.94%)
Mutual labels:  credit-card
J2pay
Multi-gateway payment processing library for java
Stars: ✭ 125 (-6.02%)
Mutual labels:  credit-card
Laravel Bank Statements
Laravel package to collect your bank statements history. Currently support for parsing statements history from BCA, Mandiri, BNI, and MUAMALAT e-banking websites.
Stars: ✭ 105 (-21.05%)
Mutual labels:  bank
Awesomecard
A Flutter package to easily create a Credit Card in your application.
Stars: ✭ 91 (-31.58%)
Mutual labels:  credit-card
Transbank Web Services
Transbank Web Services SDK. Webpay OneClick, PatPass y Transacción Normal
Stars: ✭ 115 (-13.53%)
Mutual labels:  credit-card
React Native Credit Card Input
Easy, cross-platform credit-card input for your React Native Project! Start accepting payment 💰 in your app today!
Stars: ✭ 1,244 (+835.34%)
Mutual labels:  credit-card
Ngx Validators
Validator library for Angular 2+
Stars: ✭ 128 (-3.76%)
Mutual labels:  credit-card
Banksystem
ASP.NET Core banking system with secure communication capability between instances, cards, secure payments, etc.
Stars: ✭ 70 (-47.37%)
Mutual labels:  bank
Timeoverflow
🏦 ⌛ A time banking system
Stars: ✭ 100 (-24.81%)
Mutual labels:  bank
React Native Paystack
React Native Wrapper for the Paystack Native Mobile SDKs
Stars: ✭ 106 (-20.3%)
Mutual labels:  credit-card
Cc Checker
A Credit/Debit Checker
Stars: ✭ 129 (-3.01%)
Mutual labels:  credit-card

PHP Banks DB

Build Status codecov

It is a PHP port of ramoona's banks-db.

Returns bank's name and brand color by bank card number's first digits (BIN, Issuer Identification Numbers, IIN).

Installation

composer require chekalskiy/php-banks-db

Basic usage

$card_prefix = '5275 9400 0000 0000'; // we only need first 6 digits but it could be the whole card number

try {
    $bank_db = new BankDb();
    $bank_info = $bank_db->getBankInfo($card_prefix);

    $result = [
        'is_unknown' => $bank_info->isUnknown(), // is bank unknown
        'name' => $bank_info->getTitle(true),
        'color' => $bank_info->getColor(),
        'type' => $bank_info->getCardType(),
    ];

    return $result;
} catch (BankDbException $e) {
    // todo handle exception
}

About database

We use simple PHP-file with an array inside (it's regenerates every time ramoona's repository is updated). It's very fast and simple way to work with data because of opcache enabled by default in PHP 7. But you can extend BankDB class to make it work with redis or something, but for most cases compiled php-file is OK.

Database update

Database updates from original library by me. To update php cache file after manual database change run composer rebuild.

Contributions

Feel free to open an issue on every question you have. If you have new prefixes for database please commit them to ramoona/banks-db repository — I will update them once your PR will me merged there.


It's a community driven database, so it can potentially contains mistakes.

For UI examples see the original library.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].