Skip to content

Latest commit

 

History

History
50 lines (33 loc) · 1.56 KB

README.md

File metadata and controls

50 lines (33 loc) · 1.56 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

Tag 0.2

  • Fixes in readme, composer
  • Validation fixes

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.