PHPackages                             macromindonline/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. macromindonline/laravel-credit-card-validator

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

macromindonline/laravel-credit-card-validator
=============================================

Laravel credit card validator

v0.0.6(9y ago)012MITPHPPHP &gt;=5.5.0

Since Jun 3Pushed 8y ago1 watchersCompare

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

READMEChangelogDependencies (3)Versions (7)Used By (0)

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

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

![Packagist](https://camo.githubusercontent.com/a13d6b9442fd12839b3e45d14c4905d72ce0667ecada312e2923d3040050c329/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7261703268706f757472652f6c61726176656c2d6372656469742d636172642d76616c696461746f722e737667)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build Status](https://camo.githubusercontent.com/2ed065371bdf7805c0f89b788390c17620831f24690ac614d17ab47596f82b31/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f6275696c642f672f7261703268706f757472652f6c61726176656c2d6372656469742d636172642d76616c696461746f722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/rap2hpoutre/laravel-credit-card-validator)[![Quality Score](https://camo.githubusercontent.com/a3d05192f04249a1bc5e7e9d4547c2f8b7cf275b963769a7ec9a0d3b7f81dadf/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7261703268706f757472652f6c61726176656c2d6372656469742d636172642d76616c696461746f722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/rap2hpoutre/laravel-credit-card-validator)[![SensioLabsInsight](https://camo.githubusercontent.com/1e3b3a1fdd7e01588d58f14df0459f9ba3ca67657e0ab389271fc004c76828ac/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f38303163653364312d616338632d343535652d396534642d3533623364306233393931612f6d696e692e706e67)](https://insight.sensiolabs.com/projects/801ce3d1-ac8c-455e-9e4d-53b3d0b3991a)

Adds some minimal validation rules for credit card.

Install
-------

[](#install)

Install via composer

```
composer require rap2hpoutre/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

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.4% 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 ~18 days

Total

6

Last Release

3543d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ae0f7f1f69309bec448ac224b62d1eb8d0dd6e9477097d4a502cd0f78913042e?d=identicon)[macromindonline](/maintainers/macromindonline)

---

Top Contributors

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

---

Tags

laravelvalidatorcredit-card

###  Code Quality

TestsPHPUnit

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/macromindonline-laravel-credit-card-validator/health.svg)](https://phpackages.com/packages/macromindonline-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)[rap2hpoutre/laravel-credit-card-validator

Laravel credit card validator

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

Validate that a phone number is in the correct format

69355.5k](/packages/laravel-validation-rules-phone)

PHPackages © 2026

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