raigu/company-registry-code-validation

Estonian company registry code validation

v2.4.0 2023-12-11 21:09 UTC

This package is auto-updated.

Last update: 2024-11-11 23:33:49 UTC


README

Latest Stable Version GitHub license Total Downloads build

Company Registry Code Validation

Validation of Estonian company registry code

Compatibility

PHP 7.0, 7.1, 7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3

Maintainability

This packages aims to have long life. It has zero dependencies.

Tests are written manually because testing tools do not support the range of the PHP versions supported by this package.

Automated test covers all the supported PHP versions.

Install

composer require raigu/company-registry-code-validation

Usage

<?php
require_once __DIR__ . '/vendor/autoload.php';

if (\Raigu\is_valid_company_registry_code('12213008')) {
    echo 'Valid company registry code';
} else {
    echo 'Invalid company registry code';
}

Testing

$ composer test

License

Licensed under MIT