czechphp/national-identification-number-validator

Validator for national identification number in the Czech Republic

Installs: 69

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/czechphp/national-identification-number-validator

V1.0.1 2020-08-11 17:36 UTC

This package is auto-updated.

Last update: 2025-10-12 05:43:11 UTC


README

Czech: Validátor rodného čísla

Build Status codecov

Installation

Install the latest version with

$ composer require czechphp/national-identification-number-validator

Basic usage

<?php

use Czechphp\NationalIdentificationNumberValidator\NationalIdentificationNumberValidator;

$validator = new NationalIdentificationNumberValidator();
$violation = $validator->validate('401224/001');

if ($violation === NationalIdentificationNumberValidator::ERROR_NONE) {
    // valid
}