PHPackages                             robertpatan/php-cnp-validator - 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. robertpatan/php-cnp-validator

ActiveLibrary

robertpatan/php-cnp-validator
=============================

Romania Personal Identification Number(in Romanian CNP) validator

00PHP

Since May 25Pushed 5y ago1 watchersCompare

[ Source](https://github.com/robertpatan/php-cnp-validator)[ Packagist](https://packagist.org/packages/robertpatan/php-cnp-validator)[ RSS](/packages/robertpatan-php-cnp-validator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Romania Personal Identification Number(in Romanian CNP) validator
=================================================================

[](#romania-personal-identification-numberin-romanian-cnp-validator)

Install
-------

[](#install)

`composer require robertpatan/php-cnp-validator`

Usage
-----

[](#usage)

```
require_once __DIR__ . '/vendor/autoload.php';
//example 1
\Src\CnpValidator::validate('3900527016311');

//example 2
$validator = new \Src\CnpValidator('3900527016311');
$validator->isValid();

```

Tests
-----

[](#tests)

run tests: `./vendor/bin/phpunit --bootstrap ./vendor/autoload.php`

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity33

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/b0cae647f5a9f62d083ea662248110018dec2956df19a161a58b5ccd7d3af2b1?d=identicon)[robertpatan](/maintainers/robertpatan)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/robertpatan-php-cnp-validator/health.svg)

```
[![Health](https://phpackages.com/badges/robertpatan-php-cnp-validator/health.svg)](https://phpackages.com/packages/robertpatan-php-cnp-validator)
```

PHPackages © 2026

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