PHPackages                             selay/laravel-credit-card-validator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Validation &amp; Sanitization](/categories/validation)
4. /
5. selay/laravel-credit-card-validator

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

selay/laravel-credit-card-validator
===================================

Laravel credit card validator

v2.0(4y ago)04.8kMITPHPPHP ^7.0

Since Jun 3Pushed 4y agoCompare

[ Source](https://github.com/selay/laravel-credit-card-validator)[ Packagist](https://packagist.org/packages/selay/laravel-credit-card-validator)[ RSS](/packages/selay-laravel-credit-card-validator/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (3)Versions (10)Used By (0)

Laravel Credit Card Validator
=============================

[](#laravel-credit-card-validator)

Adds some minimal validation rules for credit card.

This fork from original author rap2hpoutre/laravel-credit-card-validator is to support php 7.4 as there are issues

Install
-------

[](#install)

Install via composer

```
composer require selay/laravel-credit-card-validator

```

Add Service Provider to `config/app.php` in `providers` section

```
Rap2hpoutre\LaravelCreditCardValidator\ServiceProvider::class,
```

Usage
-----

[](#usage)

Add this to your validation rules:

```
// Add this in your controller method
$this->validate($request, [
    'credit-card-number' => 'required|ccn',
    'credit-card-date' => 'required|ccd',
    'credit-validation-code' => 'required|cvc',
]);
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 94.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~229 days

Recently: every ~458 days

Total

9

Last Release

1799d ago

Major Versions

v0.0.6 → v1.0.02020-10-27

v1.0.1 → v2.02021-06-09

PHP version history (2 changes)v0.0.1PHP &gt;=5.5.0

v1.0.0PHP ^7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/74bf2d5fdc8db9f8224c46b46cfda918ae8790e1b9a7d0a0f0a833c894e570ba?d=identicon)[selay](/maintainers/selay)

---

Top Contributors

[![rap2hpoutre](https://avatars.githubusercontent.com/u/1575946?v=4)](https://github.com/rap2hpoutre "rap2hpoutre (18 commits)")[![taylornotwell](https://avatars.githubusercontent.com/u/78162749?v=4)](https://github.com/taylornotwell "taylornotwell (1 commits)")

---

Tags

laravelvalidatorcredit-cardphp 7.4 compatible

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/selay-laravel-credit-card-validator/health.svg)

```
[![Health](https://phpackages.com/badges/selay-laravel-credit-card-validator/health.svg)](https://phpackages.com/packages/selay-laravel-credit-card-validator)
```

###  Alternatives

[laravel-validation-rules/credit-card

Validate credit card number, expiration date, cvc

2412.2M5](/packages/laravel-validation-rules-credit-card)[proengsoft/laravel-jsvalidation

Validate forms transparently with Javascript reusing your Laravel Validation Rules, Messages, and FormRequest

1.1k2.3M49](/packages/proengsoft-laravel-jsvalidation)[sunspikes/clamav-validator

Custom Laravel 5 anti-virus validator for file uploads.

3651.8M3](/packages/sunspikes-clamav-validator)[illuminatech/validation-composite

Allows uniting several validation rules into a single one for easy re-usage

184485.5k](/packages/illuminatech-validation-composite)[laravel-validation-rules/phone

Validate that a phone number is in the correct format

69355.5k](/packages/laravel-validation-rules-phone)[rap2hpoutre/laravel-credit-card-validator

Laravel credit card validator

22129.5k](/packages/rap2hpoutre-laravel-credit-card-validator)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
