Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 1.51 KB

README.md

File metadata and controls

45 lines (30 loc) · 1.51 KB

Greek validations for symfony

Build Status Code Coverage Scrutinizer Code Quality

Validations for Αμκα number, αφμ number etc for symfony validator.

At the moment the following validators are available:

  • VAT Number - (ΑΦΜ)
  • Social Insurance Number (Αμκα)
  • Activity Code Number (Κ.Α.Δ)

Release notes

There is one and only release: 0.1

Instructions

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()
]);

License

SymfonyGreekValidation is released under the MIT License.