czechphp/ico-validator

Validator for IČO or taxpayer identification number in the Czech Republic

v1.0.3 2022-07-20 15:06 UTC

This package is auto-updated.

Last update: 2024-05-20 19:30:19 UTC


README

Czech: Validátor identifikačního čísla osoby IČO

Build Status codecov

Installation

Install the latest version with

$ composer require czechphp/ico-validator

Basic usage

<?php

use Czechphp\ICOValidator\ICOValidator;

$validator = new ICOValidator();
$violation = $validator->validate('25596641');

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