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

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

senyor/yii2-validators
======================

credit card validation yii 2

1.0.1(11y ago)014MITPHP

Since Apr 10Pushed 8y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (4)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

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

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

4047d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/37fd15a2140e4389ce98d5f645b0e1256f5e481f0f4b211e0c25177228d10778?d=identicon)[senyor](/maintainers/senyor)

---

Top Contributors

[![bryglen](https://avatars.githubusercontent.com/u/875604?v=4)](https://github.com/bryglen "bryglen (10 commits)")[![senyor](https://avatars.githubusercontent.com/u/4295585?v=4)](https://github.com/senyor "senyor (4 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/senyor-yii2-validators/health.svg)

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

###  Alternatives

[bryglen/yii2-validators

credit card validation yii 2

1426.7k](/packages/bryglen-yii2-validators)[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)
