PHPackages                             tesla-software/oib - 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. tesla-software/oib

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

tesla-software/oib
==================

Validate, generate OIB (Croatian Personal Identification Number)

v1.0.0(5y ago)112MITPHPPHP ^7.3|^8.0

Since Feb 1Pushed 5y ago1 watchersCompare

[ Source](https://github.com/tesla-software/oib)[ Packagist](https://packagist.org/packages/tesla-software/oib)[ RSS](/packages/tesla-software-oib/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

OIB Validator
=============

[](#oib-validator)

[![Latest Version on Packagist](https://camo.githubusercontent.com/e2388860d084da8502ec949c82a9918f65a70c6168572687f1f7c59a799e8c21/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7465736c612d736f6674776172652f6f69622e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tesla-software/oib)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/fb6cd78b0b2f191f3a997f3968597437938d1a356fc7729fd68013b8ccc4e389/68747470733a2f2f7777772e7472617669732d63692e636f6d2f7465736c612d736f6674776172652f6f69622e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/github/tesla-software/oib)

Validate OIB (Personal Identification Number).

Install
-------

[](#install)

Via Composer

```
composer require tesla-software/oib
```

Usage
-----

[](#usage)

### Validation

[](#validation)

```
use Tesla\OIB\OIB;

// Check if OIB is valid
OIB::validate('00000000001'); // Returns: bool
```

### Validation of multiple OIB's

[](#validation-of-multiple-oibs)

```
// Check if OIB's are valid
OIB::validateMany('00000000001', '00000000002', ...); // Returns: array
// or
OIB::validateMany(['00000000001', '00000000002', ...]); // Returns: array

/**
 * Results
 *
    [
      "73963178454"   => false
      "25878484848"   => false
      "73963178454AA" => false
      "25878484848ZZ" => false
      "87783564545"   => false
      "87783564545GG" => false
      "12345678911"   => true
      "91145678919"   => true
      "87884784457"   => true
      "87871118443"   => true
      "36875454458"   => true
      "78745548455"   => true
    ]
*/
```

Testing
-------

[](#testing)

```
composer test
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

1931d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f96da2f5ca709b190bf87cbcc8643553bdfe8ed7dba98f6db95ace7839f02b2a?d=identicon)[karlomikus1](/maintainers/karlomikus1)

---

Top Contributors

[![keleee](https://avatars.githubusercontent.com/u/12555424?v=4)](https://github.com/keleee "keleee (3 commits)")

---

Tags

personal identification numbercroatiaoibosobni identifikacijski broj

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/tesla-software-oib/health.svg)

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

###  Alternatives

[webmozart/assert

Assertions to validate method input/output with nice error messages.

7.6k894.0M1.2k](/packages/webmozart-assert)[bensampo/laravel-enum

Simple, extensible and powerful enumeration implementation for Laravel.

2.0k15.9M104](/packages/bensampo-laravel-enum)[swaggest/json-schema

High definition PHP structures with JSON-schema based validation

48612.5M73](/packages/swaggest-json-schema)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[ashallendesign/laravel-config-validator

A package for validating your Laravel app's config.

217905.3k5](/packages/ashallendesign-laravel-config-validator)[crazybooot/base64-validation

Laravel validators for base64 encoded files

1341.9M8](/packages/crazybooot-base64-validation)

PHPackages © 2026

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