Downloads
Stars
Version
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
}