PHPackages                             ktaris/yii2-mexvalidators - 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. ktaris/yii2-mexvalidators

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

ktaris/yii2-mexvalidators
=========================

Two data validators for Mexico-specific data: CURP and RFC.

0.0.1(10y ago)17.9k[3 issues](https://github.com/ktaris/yii2-mexvalidators/issues)MITPHPPHP &gt;=5.4.0

Since Oct 8Pushed 10y ago3 watchersCompare

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

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

Yii2 Mexico Data Validators (yii2-mexvalidators)
================================================

[](#yii2-mexico-data-validators-yii2-mexvalidators)

Validators for two data strings used in Mexico for identity, RFC and CURP, for use with the [Yii 2.\* framework](https://github.com/yiisoft/yii2 "Yii Framework").

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

[](#installation)

Add dependency to your `composer.json` file:

```
{
    "require": {
        "ktaris/yii2-mexvalidators": "0.0.1"
    }
}
```

Usage
-----

[](#usage)

In order to use the validator, you need to provide the full path to the validator in the model:

```
public function rules()
{
    return [
       [['rfc'], RfcValidator::className()],
       [['curp'], CurpValidator::className()],
    ];
}
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

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

Unknown

Total

1

Last Release

3868d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/58ed382cb2805e713aa9a49124a00c67e8622848bcadf07d713b67f067b35537?d=identicon)[ramoscarlos](/maintainers/ramoscarlos)

---

Top Contributors

[![Faryshta](https://avatars.githubusercontent.com/u/2029247?v=4)](https://github.com/Faryshta "Faryshta (5 commits)")[![ramoscarlos](https://avatars.githubusercontent.com/u/6463371?v=4)](https://github.com/ramoscarlos "ramoscarlos (5 commits)")

---

Tags

yii2validatorsmexico

### Embed Badge

![Health badge](/badges/ktaris-yii2-mexvalidators/health.svg)

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

###  Alternatives

[borales/yii2-phone-input

Yii2 International telephone numbers - Asset Bundle, Behavior, Validator, Widget

1341.6M6](/packages/borales-yii2-phone-input)[codeonyii/yii2-at-least-validator

Validates at least one (or more) attributes.

28253.5k1](/packages/codeonyii-yii2-at-least-validator)[arogachev/yii2-many-to-many

Many-to-many ActiveRecord relation for Yii 2 framework

3541.2k4](/packages/arogachev-yii2-many-to-many)[bryglen/yii2-validators

credit card validation yii 2

1426.7k](/packages/bryglen-yii2-validators)

PHPackages © 2026

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