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
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.
Add the dependency to your project:
composer require devinpearson/binlist
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,
try {
BinList::check($binNumber);
} catch (\DevinPearson\BinList\BinListException $exception) {
// do something with exception
}