dev-master
9999999-dev
MIT
The Requires
- php >=7.1
- ext-mbstring *
- spatie/regex ^1.2
- nesbot/carbon ^1.22
- guzzlehttp/guzzle ^6.3
The Development Requires
by Vladimir Yuldashev
Wallogit.com
2017 © Pedro Peláez
This package provides an API for bank cards. Card object is a value object and cannot be modified. Also, this package takes care of secure serialization and deserialization of card information and provides an API for bin data information retrieval., (*1)
You can install the package via composer:, (*2)
composer require vyuldashev/cards
use Vyuldashev\Cards\Card;
Card::create('4916080075115045'); // Vyuldashev\Cards\Visa::class
Card::create('5258369670492716'); // Vyuldashev\Cards\MasterCard::class
Pan may also contain non-numeric characters, method create will remove these characters itself., (*3)
Card::create('4916-0800-7511-5045'); // 4916080075115045
Create card with passing expiration month, expiration year and cvv. Each argument is optional:, (*4)
Card::create('4916080075115045', 3, 2021, 123);
If card type cannot be identified, Unknown card instance will be returned., (*5)
Card::create('8888888888888888'); // Vyuldashev\Cards\Unknown::class
MIT