1. Go to this page and download the library: Download simplecms/bank library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
simplecms / bank example snippets
use SimpleCMS\Bank\Facades\Bank;
Bank::getBankList(); //Returns the complete list
Bank::getOptions(); // Returns as Collection<value:string, name:string>
Bank::getOptions('DC'); // Returns a list of debit card banks. Supports all, DC, CC, SCC, PC
use SimpleCMS\Bank\Facades\Bank;
Bank::getBankByCode($code); // Retrieve bank information by code
Bank::getBankByName($name); // Retrieve bank information by name
Bank::getBankByBin($bin); // Retrieve bank information by BIN
Bank::getBankByCardNumber($card_number); // Retrieve bank information by card number
Bank::checkBin($bin); // Check the validity of BIN
Bank::checkCardNumber($card_number); // Check the validity of card number
$rules = [
'bank' => 'bank', //Bank name
'bank_bin' => 'bank_bin', //Bank BIN
'bank_card' => 'bank_card', //Bank card number
'bank_code' => 'bank_code' //Bank code
];
$messages = [
'bank.bank' => 'The name of bank is incorrect.',
'bank_bin.bank_bin' => 'The bin code is incorrect.',
'bank_card.bank_card' => 'The card number is incorrect.',
'bank_code.bank_code' => 'The code of bank is incorrect.',
];
$data = $request->validate($rules,$messages);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.