locastic / oib-validator
Symfony person identification number validator based on constraints which are based on the Country regulation.
Requires
- php: ^7.0
- psr/container: ^1.0
- psr/log: ^1.0
- symfony/validator: ^3.3.6 || ^4.0
Requires (Dev)
- guzzlehttp/psr7: ^1.4
- php-http/httplug: ^1.1
- phpunit/phpunit: ^3.3.6 || ^4.1
- symfony/config: ^3.3.6 || ^4.0
- symfony/console: ^3.3.6 || ^4.0
- symfony/phpunit-bridge: ^3.3.6 || ^4.1
This package is auto-updated.
Last update: 2024-10-22 05:17:13 UTC
README
Symfony oib validator based on oib rules for Croatian citizens ID number which include rules determined and assigned by the Tax Administration like mod 11 check digit.
Overview
The Personal identification number (hrv. Osobni identifikacijski broj or OIB) is a permanent national identification number of every Croatian citizen and legal persons domiciled in the Republic of Croatia.
Installation
composer require locastic/oib-validator
Annotations
If you are using annotations for validation, include the constraints namespace:
use Locastic\Component\OibValidator\Validator\Constraints as LocasticOib;
and then add the OibValidator constraint to the relevant field:
/** * @LocasticOib\OibValidator */ protected $oib;
YAML
App\Entity\Company: properties: oib: - Locastic\Component\OibValidator\Validator\Constraints\OibValidator
Support
Need help at your project? Write us an email on info@locastic.com