Skip to content

lightools/company-id-validator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

Simple validation of Czech company ID (IČ).

Installation

$ composer require lightools/company-id-validator

Simple usage

$validator = new Lightools\CompanyIdValidator\CompanyIdValidator();
$validator->isValidId('27082440'); // true
$validator->isValidId('25596641'); // true
$validator->isValidId('1859951'); // true (leading zero added, you can disable this function in constructor)
$validator->isValidId('12345678'); // false

Further validation

If you want to know if subject with some ID really exists, you can use lightools/ares.

How to run tests

$ vendor/bin/tester tests

About

Simple validation of Czech company ID.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages