Skip to content

Symfony OIB validator based on OIB rules for Croatian citizens ID number.

Notifications You must be signed in to change notification settings

Locastic/OibValidator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OibValidator

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

About

Symfony OIB validator based on OIB rules for Croatian citizens ID number.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages