devinpearson / binlist
Easy package for using binlist in laravel.
Installs: 1 986
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 3
Open Issues: 0
Requires
- php: >=7.1.3
- guzzlehttp/guzzle: ^6.3
- illuminate/contracts: ^5.7
- illuminate/support: ^5.7
Requires (Dev)
- graham-campbell/analyzer: ^2.0
- graham-campbell/testbench: ^5.0
- mockery/mockery: ^1.0
- phpunit/phpunit: ^7.0
- squizlabs/php_codesniffer: ^3.0
This package is auto-updated.
Last update: 2025-03-09 22:26:48 UTC
README
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