PHPackages                             avram/jmbg - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. avram/jmbg

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

avram/jmbg
==========

Class used to extract data from ex Yugoslavian unique master citizen numbers.

v0.1.3(9y ago)31.0k↓100%2MIT LicensePHPPHP &gt;=5.3.0

Since Feb 28Pushed 8y ago1 watchersCompare

[ Source](https://github.com/avramovic/JMBG)[ Packagist](https://packagist.org/packages/avram/jmbg)[ RSS](/packages/avram-jmbg/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (5)Used By (0)

JMBG
====

[](#jmbg)

PHP class used to extract data from ex Yugoslavian unique master citizen numbers.

Introduction
------------

[](#introduction)

JMBG (jedinstveni matični broj građana) or *unique master citizen numbers* is a 13 characters long number assigned to all newborns in ex Yugoslavian countries. It seems random but it isn't. It holds following data:

- date of birth
- state of birth
- place of birth (region/city)
- gender
- validation checksum

This PHP class can be used to extract this data from JMBG numbers. It uses PSR-4 autoloading standard.

Intallation
-----------

[](#intallation)

Install using composer with:

`composer require avram/jmbg`

Or manually by cloning this repository:

`git clone https://github.com/avramovic/JMBG.git`

Usage
-----

[](#usage)

```
