PHP Classes

IRBin: Identify Iran bank issuer from card number

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 72%Total: 76 All time: 10,170 This week: 41Up
Version License PHP version Categories
irbin 1.0GNU Free Document...4E-Commerce
Description 

Author

This package is specific mainly for applications used in Iran Iran .

This class can identify Iran bank issuer from card number.

It takes the first digits of a debit card number and determine the card information.

Currently it returns the card issuer bank only.

Picture of Keivan Sohrabloo
  Performance   Level  
Name: Keivan Sohrabloo <contact>
Classes: 2 packages by
Country: Iran Iran
Age: 34
All time rank: 426988 in Iran Iran
Week rank: 170 Up2 in Iran Iran Up

Example

<?php
require_once('IRBIN.class.php');

/**
 * IRBIN
 *
 * IRBIN Test Example
 *
 * Copyright 2015 Keivan Sohrabloo
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * @category BinList
 * @package IRBinList
 * @copyright Copyright 2016 Keivan Sohrabloo
 * @license http://www.apache.org/licenses/LICENSE-2.0
 * @version 1.0.0, 2016-06-10
 * @author Keivan Sohrabloo (k.sohrabloo.k@gmail.com)
 */
 
 
$test2=new IRBIN;
 
var_dump($test2->getinfo("603799"));
 
 
/*
 Result:
 array(2) {
  ["BIN"]=>
  string(6) "603799"
  ["BANK"]=>
  string(26) "???? ??? ?????"
}

 
 */
 
?>


Details

Usage

require_once('IRBIN.class.php');

Example


 $test2=new IRBIN;
 var_dump($test2->getinfo("603799"));

Notes

This library can identify only 43 banks.


  Files folder image Files (3)  
File Role Description
Plain text file IRBIN.Class.php Class Class Source
Accessible without login Plain text file IRBINTest.php Example Example File
Accessible without login Plain text file Readme.md Doc. Readme

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:76
This week:0
All time:10,170
This week:41Up
 User Ratings  
 
 All time
Utility:91%StarStarStarStarStar
Consistency:91%StarStarStarStarStar
Documentation:83%StarStarStarStarStar
Examples:91%StarStarStarStarStar
Tests:-
Videos:-
Overall:72%StarStarStarStar
Rank:184