Free source to check, verify & validate BIN (Bank Identification Number), credit, debit, charge or a prepaid card.
To install cekBin, simply:
$ composer require dwisiswant0/cekBin
For latest commit version:
$ composer require dwisiswant0/cekBin @dev
cekBin works with PHP 5.3, 5.4, 5.5, 5.6, 7.0, 7.1, and HHVM.
Examples are available under /examples.
require_once(dirname(__DIR__) . "/vendor/autoload.php");
$bin = "444444"; // first six digits of a credit card
$cekBin = new \dwisiswant0\cekBin();
$check = $cekBin->check($bin);
var_dump($check);
To run tests:
$ git clone https://github.com/dwisiswant0/cekBin.git
$ cd cekBin/
$ composer update
$ cd examples/
$ php check.php
- Check for open issues or open a new issue to start a discussion around a bug or feature.
- Fork the repository on GitHub to start making your changes.
- Write one or more tests for the new feature or that expose the bug.
- Make code changes to implement the feature or fix the bug.
- Send a pull request to get your changes merged and published.