devinpearson/binlist

Easy package for using binlist in laravel.

v1.0.2 2019-06-09 09:47 UTC

This package is auto-updated.

Last update: 2024-04-09 20:18:07 UTC


README

Latest Stable Version Latest Unstable Version License composer.lock Build Status StyleCI Code Coverage

A simple wrapper for checking binlist codes via binlist.net and formats the results in to type hinted objects so it makes it easier to work and reference the results.

Installing

Add the dependency to your project:

composer require devinpearson/binlist

Laravel 5.5+:

If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php

DevinPearson\BinList\BinListServiceProvider::class,

If you want to use the facade to log messages, add this to your facades in app.php:

'BinList' => DevinPearson\BinList\Facades\BinList::class,

Usage

try {
    BinList::check($binNumber);
} catch (\DevinPearson\BinList\BinListException $exception) {
    // do something with exception
}

Features

  • creates an easy to use facade for binlist.net

Requirements

  • PHP 7.1+
  • PHPUnit is required to run the unit tests
  • Composer is required to run the unit tests