Validations for Αμκα number, αφμ number etc for symfony validator.
At the moment the following validators are available:
- VAT Number - (ΑΦΜ)
- Social Insurance Number (Αμκα)
- Activity Code Number (Κ.Α.Δ)
There is one and only release: 0.1
composer require thanos-kontos/greek-validators-symfony
$validator = Validation::createValidator();
$violations = $validator->validate('7865456587', [
new /SymfonyGreekValidation/Afm(),
new /Symfony/Component/Validator/Constraints/NotBlank()
]);
or
$validator = Validation::createValidator();
$violations = $validator->validate('3545787968765', [
new /SymfonyGreekValidation/Amka(),
new /Symfony/Component/Validator/Constraints/NotBlank()
]);
SymfonyGreekValidation is released under the MIT License.