2017 © Pedro Peláez
 

library oib

Personal Identification Number (OIB) validator for Croatian citizens

image

toniperic/oib

Personal Identification Number (OIB) validator for Croatian citizens

  • Sunday, April 19, 2015
  • by toniperic
  • Repository
  • 2 Watchers
  • 2 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 8 % Grown

The README.md

Build Status Latest Stable Version License, (*1)

Introduction

Personal Identification Number (Croatian: Osobni identifikacijski broj or OIB) is a permanent national identification number of every Croatian citizen and legal persons domiciled in the Republic of Croatia., (*2)

Installation

Just pull the package via Composer, (*3)

"require": {
    "toniperic/oib": "~1.0"
}

Usage

You can check whether an OIB is valid likewise, (*4)

Oib::validate('foo'); // false
Oib::validate(71481280786); // true

You could also specify an array as first parameter, likewise, (*5)

Oib::validate(array(71481280786, 64217529143, 'foo'));

and the returned result would be, (*6)

array(3) {              
  ["71481280786"] => bool(true)            
  ["64217529143"] => bool(true)            
  ["foo"] => bool(false)           
}                       

Feel free to check the tests if you still can't understand how the package works., (*7)

The Versions

19/04 2015

dev-master

9999999-dev

Personal Identification Number (OIB) validator for Croatian citizens

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Toni Peric

19/04 2015

1.0.0

1.0.0.0

Personal Identification Number (OIB) validator for Croatian citizens

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Toni Peric