raigu / company-registry-code-validation
Estonian company registry code validation
Installs: 414
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/raigu/company-registry-code-validation
Requires
- php: ^7.0|^8.0
README
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