gatepay/credit-card
最新稳定版本:1.0.1
Composer 安装命令:
composer require gatepay/credit-card
包简介
A credit card validator and generator for PHP
README 文档
README
Zero Dependency Credit Card (And Debit Card) Checker, based on Luhn Algorithm.
Installation
composer require "gatepay/credit-card"
Usage
For implementation please refer HOW TO guide.
Requirements
php 8.1 or higher is required to use this library.
Credit / Debit Card Brands
The brand source IIN (Issuer Identification Number) data is based on Wikipedia IIN.
By default, supported brands (factories) are:
- American Express
- BankCard
- Borica
- China T-Union
- Dankort
- Diners Club
- Diners Club International
- Discover Card
- Elo
- Humo
- HiperCard
- InterPayment
- JCB
- LankaPay
- Laser
- Maestro
- Maestro UK
- Mastercard
- Mir
- RuPay
- Solo
- Switch Debit
- Troy
- UnionPay
- UzCard
- Verve
- Visa
- Visa Electron
- GPN (Recommended to disable this brand, as it is widely overlapping with other brands, and it is not widely used - disabled by default)
License
MIT License - Use it, modify it, ship it.
Stop fighting your payment gateway. Start shipping features.
Built with ❤️ for developers who have better things to do than debug payment integrations.
统计信息
- 总下载量: 109
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 8
- 依赖项目数: 1
- 推荐数: 2
其他信息
- 授权协议: MIT
- 更新时间: 2026-04-03