PHPackages                             pear/validate\_finance\_creditcard - 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. pear/validate\_finance\_creditcard

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

pear/validate\_finance\_creditcard
==================================

Validation class for credit cards.

0.7.0(5y ago)8487.0k↓24.1%62New BSDPHPPHP &gt;=5.2.1

Since Feb 18Pushed 3y ago15 watchersCompare

[ Source](https://github.com/pear/Validate_Finance_CreditCard)[ Packagist](https://packagist.org/packages/pear/validate_finance_creditcard)[ RSS](/packages/pear-validate-finance-creditcard/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (5)Used By (2)

[![Build Status](https://camo.githubusercontent.com/4a0664a4fdb8a72714184f47022ba6eaff3080a742f5d6da0a7bb7f58f9d66fc/68747470733a2f2f7472617669732d63692e6f72672f706561722f56616c69646174655f46696e616e63655f437265646974436172642e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/pear/Validate_Finance_CreditCard)

Validate\_Finance\_CreditCard
=============================

[](#validate_finance_creditcard)

Validation class for credit cards. Validates card numbers according to the [Luhn algorithm](http://en.wikipedia.org/wiki/Luhn_algorithm) and according to card type. Also validates CVV/CID/CSC numbers according to card type.

Supported card types are:

- MasterCard
- Visa
- American Express
- Diners Club
- Carte Blanche
- Discover
- JCB
- EnRoute
- Eurocard

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity44

Moderate usage in the ecosystem

Community31

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor3

3 contributors hold 50%+ of commits

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

Total

3

Last Release

1825d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/120511?v=4)[Michael Gauthier](/maintainers/gauthierm)[@gauthierm](https://github.com/gauthierm)

---

Top Contributors

[![helgi](https://avatars.githubusercontent.com/u/70530?v=4)](https://github.com/helgi "helgi (158 commits)")[![CloCkWeRX](https://avatars.githubusercontent.com/u/365751?v=4)](https://github.com/CloCkWeRX "CloCkWeRX (103 commits)")[![pierrejoye](https://avatars.githubusercontent.com/u/282408?v=4)](https://github.com/pierrejoye "pierrejoye (92 commits)")[![kenguest](https://avatars.githubusercontent.com/u/234118?v=4)](https://github.com/kenguest "kenguest (83 commits)")[![amir](https://avatars.githubusercontent.com/u/4293?v=4)](https://github.com/amir "amir (42 commits)")[![neufeind](https://avatars.githubusercontent.com/u/910025?v=4)](https://github.com/neufeind "neufeind (35 commits)")[![Moosh-be](https://avatars.githubusercontent.com/u/388085?v=4)](https://github.com/Moosh-be "Moosh-be (31 commits)")[![bjori](https://avatars.githubusercontent.com/u/72407?v=4)](https://github.com/bjori "bjori (26 commits)")[![tvvcox](https://avatars.githubusercontent.com/u/743820?v=4)](https://github.com/tvvcox "tvvcox (23 commits)")[![cweiske](https://avatars.githubusercontent.com/u/59036?v=4)](https://github.com/cweiske "cweiske (16 commits)")[![gauthierm](https://avatars.githubusercontent.com/u/120511?v=4)](https://github.com/gauthierm "gauthierm (7 commits)")[![arraypad](https://avatars.githubusercontent.com/u/451166?v=4)](https://github.com/arraypad "arraypad (7 commits)")[![janisto](https://avatars.githubusercontent.com/u/387868?v=4)](https://github.com/janisto "janisto (6 commits)")[![m6w6](https://avatars.githubusercontent.com/u/1265282?v=4)](https://github.com/m6w6 "m6w6 (6 commits)")[![golgote](https://avatars.githubusercontent.com/u/12360?v=4)](https://github.com/golgote "golgote (5 commits)")[![hemmat](https://avatars.githubusercontent.com/u/277982?v=4)](https://github.com/hemmat "hemmat (4 commits)")[![ifeghali](https://avatars.githubusercontent.com/u/70428?v=4)](https://github.com/ifeghali "ifeghali (3 commits)")[![anantn](https://avatars.githubusercontent.com/u/37190?v=4)](https://github.com/anantn "anantn (3 commits)")[![andrew-cormick-dockery](https://avatars.githubusercontent.com/u/17037045?v=4)](https://github.com/andrew-cormick-dockery "andrew-cormick-dockery (3 commits)")[![jacques](https://avatars.githubusercontent.com/u/2543?v=4)](https://github.com/jacques "jacques (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pear-validate-finance-creditcard/health.svg)

```
[![Health](https://phpackages.com/badges/pear-validate-finance-creditcard/health.svg)](https://phpackages.com/packages/pear-validate-finance-creditcard)
```

###  Alternatives

[webmozart/assert

Assertions to validate method input/output with nice error messages.

7.6k894.0M1.2k](/packages/webmozart-assert)[bensampo/laravel-enum

Simple, extensible and powerful enumeration implementation for Laravel.

2.0k15.9M104](/packages/bensampo-laravel-enum)[swaggest/json-schema

High definition PHP structures with JSON-schema based validation

48612.5M73](/packages/swaggest-json-schema)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[ashallendesign/laravel-config-validator

A package for validating your Laravel app's config.

217905.3k5](/packages/ashallendesign-laravel-config-validator)[crazybooot/base64-validation

Laravel validators for base64 encoded files

1341.9M8](/packages/crazybooot-base64-validation)

PHPackages © 2026

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