Validation of Estonian company registry code
PHP 7.0, 7.1, 7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3
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.
composer require raigu/company-registry-code-validation
<?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';
}
$ composer test
Licensed under MIT