Zero Dependency Credit Card (And Debit Card) Checker, based on Luhn Algorithm.
composer require "gatepay/credit-card"For implementation please refer HOW TO guide.
php 8.1 or higher is required to use this library.
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)
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.