PHPackages                             locastic/oib-validator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Validation &amp; Sanitization](/categories/validation)
4. /
5. locastic/oib-validator

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

locastic/oib-validator
======================

Symfony person identification number validator based on constraints which are based on the Country regulation.

v1.0.3(7y ago)16861MITPHPPHP ^7.0

Since Aug 7Pushed 7y ago4 watchersCompare

[ Source](https://github.com/Locastic/OibValidator)[ Packagist](https://packagist.org/packages/locastic/oib-validator)[ RSS](/packages/locastic-oib-validator/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (9)Versions (7)Used By (0)

OibValidator
============

[](#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.

 [ ![](https://camo.githubusercontent.com/67f772fa23016c6b7c1c39009a0985ab73cd6e1439f4e310a444f675d0a05a3f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6c6f6361737469632f6f69622d76616c696461746f722e737667) ](https://packagist.org/packages/locastic/oib-validator "License") [ ![](https://camo.githubusercontent.com/3e1749710602fb8da4887352dbb4fc7b95250a498f31c2e2bd1a410d26b61769/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f4c6f6361737469632f6f69622d76616c696461746f722e737667) ](https://packagist.org/packages/locastic/oib-validator "Version") [ ![](https://camo.githubusercontent.com/261ad115c959348e9b8ec660118b3a3c3a44e453c9b2c1e8da5b1d499716b5dc/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f4c6f6361737469632f4f696256616c696461746f722f6d61737465722e737667) ](https://travis-ci.org/Locastic/OibValidator "Build status") [ ![](https://camo.githubusercontent.com/fee04bd4d797887694ba2f7d2e813098b2d6034b9df44ed3153b50e6b3355be8/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f4c6f6361737469632f4f696256616c696461746f722e737667) ](https://scrutinizer-ci.com/g/Locastic/OibValidator/ "Scrutinizer") [ ![](https://camo.githubusercontent.com/9639fc3e30a50feb8f42b172bb433589f94567b2ef3601f20d67e2df4901a2a1/68747470733a2f2f706f7365722e707567782e6f72672f6c6f6361737469632f6f69622d76616c696461746f722f646f776e6c6f616473) ](https://packagist.org/packages/locastic/oib-validator "Total Downloads")
==========================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#--------------------------------------------------------------------------------)

Overview
--------

[](#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
------------

[](#installation)

```
composer require locastic/oib-validator

```

Annotations
-----------

[](#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
----

[](#yaml)

```
App\Entity\Company:
    properties:
        oib:
            - Locastic\Component\OibValidator\Validator\Constraints\OibValidator
```

Support
-------

[](#support)

Need help at your project? Write us an email on

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~3 days

Total

4

Last Release

2824d ago

PHP version history (2 changes)v1.0PHP ^7.1

v1.0.2PHP ^7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/13758a6abd53618188475ebd3bab831a8669a3ebe7f9880a12a2ec1ba80b9643?d=identicon)[antonioperic](/maintainers/antonioperic)

---

Top Contributors

[![dujesa](https://avatars.githubusercontent.com/u/33405160?v=4)](https://github.com/dujesa "dujesa (2 commits)")[![antonioperic](https://avatars.githubusercontent.com/u/2453151?v=4)](https://github.com/antonioperic "antonioperic (1 commits)")

---

Tags

phpsymfonyvalidatorvatnumbercroatiaoib

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/locastic-oib-validator/health.svg)

```
[![Health](https://phpackages.com/badges/locastic-oib-validator/health.svg)](https://phpackages.com/packages/locastic-oib-validator)
```

###  Alternatives

[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[rollerworks/password-strength-validator

Password-strength validator for Symfony

1455.7M6](/packages/rollerworks-password-strength-validator)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
