PHPackages                             bryglen/yii2-validators - 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. bryglen/yii2-validators

ActiveYii2-extension[Validation &amp; Sanitization](/categories/validation)

bryglen/yii2-validators
=======================

credit card validation yii 2

1.0.1(11y ago)1426.7k↓50%9[1 PRs](https://github.com/bryglen/yii2-validators/pulls)MITPHP

Since Apr 10Pushed 7y ago3 watchersCompare

[ Source](https://github.com/bryglen/yii2-validators)[ Packagist](https://packagist.org/packages/bryglen/yii2-validators)[ RSS](/packages/bryglen-yii2-validators/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

Yii 2 credit card validation
============================

[](#yii-2-credit-card-validation)

credit card validation yii 2

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist bryglen/yii2-validators "1.0.1"

```

or add

```
"bryglen/yii2-validator": "1.0.1"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your models :

```
public function rules()
{
    return [
        ['cc', 'bryglen\validators\CreditCardValidator']
    ];
}
```

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 73.3% 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

4056d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/875604?v=4)[bryglen](/maintainers/bryglen)[@bryglen](https://github.com/bryglen)

---

Top Contributors

[![bryglen](https://avatars.githubusercontent.com/u/875604?v=4)](https://github.com/bryglen "bryglen (11 commits)")[![cshehadi](https://avatars.githubusercontent.com/u/639996?v=4)](https://github.com/cshehadi "cshehadi (1 commits)")[![RamzyVirani](https://avatars.githubusercontent.com/u/8522676?v=4)](https://github.com/RamzyVirani "RamzyVirani (1 commits)")[![spyridonas](https://avatars.githubusercontent.com/u/4473825?v=4)](https://github.com/spyridonas "spyridonas (1 commits)")[![taxp](https://avatars.githubusercontent.com/u/9430589?v=4)](https://github.com/taxp "taxp (1 commits)")

---

Tags

yii2extensionvalidatorscredit card validators

### Embed Badge

![Health badge](/badges/bryglen-yii2-validators/health.svg)

```
[![Health](https://phpackages.com/badges/bryglen-yii2-validators/health.svg)](https://phpackages.com/packages/bryglen-yii2-validators)
```

###  Alternatives

[kdn/yii2-domain-validator

Domain name validator for Yii 2.

11122.3k1](/packages/kdn-yii2-domain-validator)

PHPackages © 2026

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