Skip to content

czechphp/ico-validator

Repository files navigation

Czech company registration number (IČO) Validator

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
}