LaravelPackages.net
Acme Inc.
Toggle sidebar
devinpearson/binlist

Easy package for using binlist in laravel.

1.986
1
v1.0.2
About devinpearson/binlist

devinpearson/binlist is a Laravel package for easy package for using binlist in laravel.. It currently has 1 GitHub stars and 1.986 downloads on Packagist (latest version v1.0.2). Install it with composer require devinpearson/binlist. Discover more Laravel packages by devinpearson or browse all Laravel packages to compare alternatives.

Last updated

Wrapper for BinList.net

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

Star History Chart