Skip to content

thanosKontos/greek-validators-symfony

Repository files navigation

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.

About

Validators for symfony validator for Greece (afm, amka)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages