gatepay/credit-card

A credit card validator and generator for PHP

Maintainers

Package info

github.com/TrayDigita/GatePay-CreditCard

pkg:composer/gatepay/credit-card

Fund package maintenance!

arrayiterator

www.paypal.me/aufa

Statistics

Installs: 109

Dependents: 1

Suggesters: 2

Stars: 1

Open Issues: 0

1.0.1 2026-04-11 23:07 UTC

This package is auto-updated.

Last update: 2026-04-11 23:09:11 UTC


README

PHP CI codecov License: MIT PHP Version

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:

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.