承接 amiriskander/valid-credit-card 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

amiriskander/valid-credit-card

Composer 安装命令:

composer require amiriskander/valid-credit-card

包简介

Validate credit and debit cards given their card numbers and cvc number

README 文档

README

Build Status Latest Stable Version Total Downloads License

Simple and lightweight package that validates credit cards and debit cards for popular providers.

It validates cards against their card number lengths, card number patterns, CVC length and using Luhn algorithm if it were supported by the provider.

Installation

Require the package using composer

composer require amiriskander/valid-credit-card

Or add it manually to composer.json in the list of dependencies under require

"require": {
    "amiriskander/valid-credit-card": "*"
},

Usage

Validate Credit/Debit card:

use AmirIskander\CreditCard\CreditCardValidator;

$cardValidator = new CreditCardValidator();
$isValid = $cardValidator->validateCreditCard('4539392426082460', '123');
var_dump($isValid);

Output:

bool(true)

Tests

Execute the below command to run the unit tests:

vendor/bin/phpunit tests

Resources

统计信息

  • 总下载量: 19
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-01-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固