PHPackages                             chendujin/credit-card-verify - 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. chendujin/credit-card-verify

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

chendujin/credit-card-verify
============================

credit card validator

v1.1.0(3y ago)026MITPHP

Since Jun 28Pushed 3y agoCompare

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

READMEChangelog (2)Dependencies (2)Versions (3)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)

Adds some minimal validation rules for credit card.

Install
-------

[](#install)

Install via composer

```
composer require chendujin/credit-card-verify

```

#### Lumen

[](#lumen)

Register Service Provider `bootstrap/app.php`

```
$app->register(Chendujin\CreditCardVerify\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

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 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 ~0 days

Total

2

Last Release

1102d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6fed23a1717adf119f9dcd5343085fed14e74fe12b6a1d027a4e29437696854b?d=identicon)[chendujin](/maintainers/chendujin)

---

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

laravelvalidatorlumencredit-card

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/chendujin-credit-card-verify/health.svg)

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

###  Alternatives

[laravel-validation-rules/credit-card

Validate credit card number, expiration date, cvc

2462.4M7](/packages/laravel-validation-rules-credit-card)[axlon/laravel-postal-code-validation

Worldwide postal code validation for Laravel

3893.6M1](/packages/axlon-laravel-postal-code-validation)[sunspikes/clamav-validator

Custom Laravel anti-virus validator for file uploads using ClamAV.

3722.1M6](/packages/sunspikes-clamav-validator)[iamfarhad/validation

🇮🇷 Complete Laravel Persian validation package - Iranian national ID, mobile numbers, Shamsi dates, IBAN/Sheba, postal codes &amp; more. Modern Laravel 10-13 support with both ValidationRule objects &amp; string-based rules.

3017.3k](/packages/iamfarhad-validation)[rap2hpoutre/laravel-credit-card-validator

Laravel credit card validator

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

PHPackages © 2026

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