PHPackages                             jcabanillas/yii2-pervalidators - 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. jcabanillas/yii2-pervalidators

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

jcabanillas/yii2-pervalidators
==============================

Two data validators for Peru-specific data: RUC.

0127PHP

Since Jul 22Pushed 5y ago1 watchersCompare

[ Source](https://github.com/jcabanillas/yii2-pervalidators)[ Packagist](https://packagist.org/packages/jcabanillas/yii2-pervalidators)[ RSS](/packages/jcabanillas-yii2-pervalidators/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Yii2 Peru Data Validators (yii2-pervalidators)
==============================================

[](#yii2-peru-data-validators-yii2-pervalidators)

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

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

[](#installation)

Add dependency to your `composer.json` file:

```
{
    "require": {
        "jcabanillas/yii2-rucvalidators": "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

18

—

LowBetter than 7% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity30

Early-stage or recently created project

 Bus Factor1

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

### Community

Maintainers

![](https://www.gravatar.com/avatar/f7795c713460c1b84d1432aecd5ab418b0f5ee57edd01fb1726b2acefa13d18c?d=identicon)[jcabanillas](/maintainers/jcabanillas)

---

Top Contributors

[![jcabanillas](https://avatars.githubusercontent.com/u/9424899?v=4)](https://github.com/jcabanillas "jcabanillas (1 commits)")

### Embed Badge

![Health badge](/badges/jcabanillas-yii2-pervalidators/health.svg)

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

###  Alternatives

[toplan/laravel-sms

A mobile phone number validation solution based on laravel

83580.2k2](/packages/toplan-laravel-sms)[drupal/coder

Coder is a library to review Drupal code.

3046.8M629](/packages/drupal-coder)[ph-7/eu-vat-validator

A simple and clean PHP class that validates EU VAT numbers against the central ec.europa.eu database (using the official europa API).

97510.7k1](/packages/ph-7-eu-vat-validator)[hyperf/validation

hyperf validation

122.2M213](/packages/hyperf-validation)[udokmeci/yii2-phone-validator

Modern Yii2 Phone validator wrapper on top of PhoneNumberUtil library also used by Android devices

36227.5k1](/packages/udokmeci-yii2-phone-validator)[snowcap/vat-validation

EU VAT number validation

10112.3k](/packages/snowcap-vat-validation)

PHPackages © 2026

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