2017 © Pedro Peláez
 

library cards

image

vyuldashev/cards

  • Wednesday, September 20, 2017
  • by vyuldashev
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Cards

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)

Installation

You can install the package via composer:, (*2)

composer require vyuldashev/cards

Usage

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

The Versions

20/09 2017

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vladimir Yuldashev